This commit is contained in:
Calvin Montgomery 2017-04-03 20:31:21 -07:00
parent 5bdf8b4aaf
commit f42e3bf2b7
3 changed files with 8 additions and 1 deletions

View File

@ -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"
},

View File

@ -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);

View File

@ -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);
}
}
}