mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
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;
|
||||
var chan = this.channel;
|
||||
this.meta.afk = afk;
|
||||
if(!afk)
|
||||
this.autoAFK();
|
||||
if(this.meta.afk)
|
||||
chan.afkcount++;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue