mirror of https://github.com/calzoneman/sync.git
Fix #656
This commit is contained in:
parent
5bdf8b4aaf
commit
f42e3bf2b7
|
@ -2,7 +2,7 @@
|
|||
"author": "Calvin Montgomery",
|
||||
"name": "CyTube",
|
||||
"description": "Online media synchronizer and chat",
|
||||
"version": "3.34.8",
|
||||
"version": "3.34.9",
|
||||
"repository": {
|
||||
"url": "http://github.com/calzoneman/sync"
|
||||
},
|
||||
|
|
|
@ -212,6 +212,7 @@ User.prototype.setAFK = function (afk) {
|
|||
this.setFlag(Flags.U_AFK);
|
||||
if (this.channel.modules.voteskip) {
|
||||
this.channel.modules.voteskip.unvote(this.realip);
|
||||
this.socket.emit("clearVoteskipVote");
|
||||
}
|
||||
} else {
|
||||
this.clearFlag(Flags.U_AFK);
|
||||
|
|
|
@ -1102,6 +1102,12 @@ Callbacks = {
|
|||
if (formGroup.length > 0) {
|
||||
formGroup.removeClass("has-error");
|
||||
}
|
||||
},
|
||||
|
||||
clearVoteskipVote: function () {
|
||||
if (CHANNEL.opts.allow_voteskip && hasPermission("voteskip")) {
|
||||
$("#voteskip").attr("disabled", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue