Clear voteskip when going afk
This commit is contained in:
parent
51874ed4b9
commit
9cd14f3bb3
1 changed files with 2 additions and 0 deletions
2
user.js
2
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue