Clear voteskip when going afk
This commit is contained in:
parent
51874ed4b9
commit
9cd14f3bb3
2
user.js
2
user.js
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue