Commit 7703b9b3 authored by JC Brand's avatar JC Brand

Bugfix. Check if CSI is enabeld before sending.

parent b310d8a1
......@@ -481,7 +481,7 @@
}
var stat = this.xmppstatus.getStatus();
this.idle_seconds++;
if (this.idle_seconds > this.csi_waiting_time && !this.inactive) {
if (this.csi_waiting_time > 0 && this.idle_seconds > this.csi_waiting_time && !this.inactive) {
this.sendCSI(INACTIVE);
}
if (this.auto_away > 0 && this.idle_seconds > this.auto_away && stat !== 'away' && stat !== 'xa') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment