mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 11:42:04 +00:00
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(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…
Add table
Reference in a new issue