From 9cd14f3bb39fd99df4bb74c74cb3c8a5912bffef Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 7 Aug 2013 13:11:58 -0400 Subject: [PATCH] Clear voteskip when going afk --- user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user.js b/user.js index f9924a64..dfec554e 100644 --- a/user.js +++ b/user.js @@ -90,6 +90,8 @@ User.prototype.setAFK = function (afk) { if(afk) { if(chan.afkers.indexOf(this.name.toLowerCase()) == -1) chan.afkers.push(this.name.toLowerCase()); + if(chan.voteskip) + chan.voteskip.unvote(this.ip); } else { if(chan.afkers.indexOf(this.name.toLowerCase()) != -1)