This commit is contained in:
Calvin Montgomery 2018-01-07 15:14:20 -08:00
parent cf9b95a265
commit e350eb731b
2 changed files with 4 additions and 3 deletions

View File

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

View File

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