Reset AFK timer when returning from being AFK
This commit is contained in:
parent
ba26d9abbb
commit
995b92ebed
1 changed files with 2 additions and 0 deletions
2
user.js
2
user.js
|
|
@ -85,6 +85,8 @@ User.prototype.setAFK = function (afk) {
|
||||||
return;
|
return;
|
||||||
var chan = this.channel;
|
var chan = this.channel;
|
||||||
this.meta.afk = afk;
|
this.meta.afk = afk;
|
||||||
|
if(!afk)
|
||||||
|
this.autoAFK();
|
||||||
if(this.meta.afk)
|
if(this.meta.afk)
|
||||||
chan.afkcount++;
|
chan.afkcount++;
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue