Reset AFK timer when returning from being AFK

This commit is contained in:
calzoneman 2013-07-29 20:02:31 -04:00
parent ba26d9abbb
commit 995b92ebed
1 changed files with 2 additions and 0 deletions

View File

@ -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