3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00
This commit is contained in:
reality 2015-01-29 23:59:55 +00:00
parent 1cbb57e519
commit b5bb0af0da

View File

@ -28,9 +28,7 @@ var commands = function(dbot) {
} else { } else {
this.api.unquiet(server, this.hosts[server][quietee], channel); this.api.unquiet(server, this.hosts[server][quietee], channel);
} }
if(vStatus === true) { this.api.voice(server, quietee, channel);
this.api.voice(server, quietee, channel);
}
dbot.api.users.resolveUser(server, dbot.config.name, function(err, user) { dbot.api.users.resolveUser(server, dbot.config.name, function(err, user) {
dbot.api.report.notify('unquiet', server, user, channel, dbot.api.report.notify('unquiet', server, user, channel,
@ -63,9 +61,7 @@ var commands = function(dbot) {
})); }));
} }
if(dbot.instance.connections[server].channels[channel].nicks[quietee].voice === true) { this.api.devoice(server, quietee, channel);
this.api.devoice(server, quietee, channel);
}
if(_.include(this.config.quietBans, channel)) { if(_.include(this.config.quietBans, channel)) {
this.api.ban(server, this.hosts[server][quietee], channel); this.api.ban(server, this.hosts[server][quietee], channel);