mirror of https://github.com/calzoneman/sync.git
Fix #728
This commit is contained in:
parent
cf9b95a265
commit
e350eb731b
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.51.17",
|
"version": "3.51.18",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -672,6 +672,9 @@ ChatModule.prototype.handleCmdUnmute = function (user, msg, meta) {
|
||||||
this.muted.remove(name);
|
this.muted.remove(name);
|
||||||
this.muted.remove(SHADOW_TAG + 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;
|
var target;
|
||||||
for (var i = 0; i < this.channel.users.length; i++) {
|
for (var i = 0; i < this.channel.users.length; i++) {
|
||||||
if (this.channel.users[i].getLowerName() === name) {
|
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);
|
target.clearFlag(Flags.U_MUTED | Flags.U_SMUTED);
|
||||||
this.channel.sendUserMeta(this.channel.users, target, -1);
|
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;
|
module.exports = ChatModule;
|
||||||
|
|
Loading…
Reference in New Issue