mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
oops
This commit is contained in:
parent
a378ec7ab4
commit
92e4db287d
@ -139,6 +139,15 @@ var commands = function(dbot) {
|
||||
network = this.config.network_name[event.server];
|
||||
}
|
||||
|
||||
dbot.api.nickserv.getUserHost(event.server, banee, function(host) {
|
||||
// Add host record entry
|
||||
if(host) {
|
||||
// Ban from current channel first
|
||||
this.api.ban(server, host, event.channel);
|
||||
this.api.kick(server, banee, event.channel, reason +
|
||||
' (network-wide ban requested by ' + banner + ')');
|
||||
channels = _.without(channels, event.channel);
|
||||
|
||||
// Ban the user from all channels
|
||||
var i = 0;
|
||||
var banChannel = function(channels) {
|
||||
@ -153,14 +162,6 @@ var commands = function(dbot) {
|
||||
}.bind(this);
|
||||
banChannel(channels);
|
||||
|
||||
dbot.api.nickserv.getUserHost(event.server, banee, function(host) {
|
||||
// Add host record entry
|
||||
if(host) {
|
||||
// Ban from current channel first
|
||||
this.api.ban(server, host, event.channel);
|
||||
this.api.kick(server, banee, event.channel, reason +
|
||||
' (network-wide ban requested by ' + banner + ')');
|
||||
channels = _.without(channels, event.channel);
|
||||
|
||||
this.hosts[event.server][banee] = host;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user