diff --git a/package.json b/package.json index 4e72c3ba..00f1eea6 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.51.17", + "version": "3.51.18", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/src/channel/chat.js b/src/channel/chat.js index c5a376d5..5e250513 100644 --- a/src/channel/chat.js +++ b/src/channel/chat.js @@ -672,6 +672,9 @@ ChatModule.prototype.handleCmdUnmute = function (user, msg, meta) { this.muted.remove(name); this.muted.remove(SHADOW_TAG + name); + this.channel.logger.log("[mod] " + user.getName() + " unmuted " + name); + this.sendModMessage(user.getName() + " unmuted " + name, muteperm); + var target; for (var i = 0; i < this.channel.users.length; i++) { if (this.channel.users[i].getLowerName() === name) { @@ -686,8 +689,6 @@ ChatModule.prototype.handleCmdUnmute = function (user, msg, meta) { target.clearFlag(Flags.U_MUTED | Flags.U_SMUTED); this.channel.sendUserMeta(this.channel.users, target, -1); - this.channel.logger.log("[mod] " + user.getName() + " unmuted " + target.getName()); - this.sendModMessage(user.getName() + " unmuted " + target.getName(), muteperm); }; module.exports = ChatModule;