Clear voteskip when going afk

This commit is contained in:
calzoneman 2013-08-07 13:11:58 -04:00
parent 51874ed4b9
commit 9cd14f3bb3
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ User.prototype.setAFK = function (afk) {
if(afk) { if(afk) {
if(chan.afkers.indexOf(this.name.toLowerCase()) == -1) if(chan.afkers.indexOf(this.name.toLowerCase()) == -1)
chan.afkers.push(this.name.toLowerCase()); chan.afkers.push(this.name.toLowerCase());
if(chan.voteskip)
chan.voteskip.unvote(this.ip);
} }
else { else {
if(chan.afkers.indexOf(this.name.toLowerCase()) != -1) if(chan.afkers.indexOf(this.name.toLowerCase()) != -1)