mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
even quicker like
This commit is contained in:
parent
339fb3ddfb
commit
d473d95e42
@ -139,6 +139,12 @@ var commands = function(dbot) {
|
||||
network = this.config.network_name[event.server];
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
dbot.api.nickserv.getUserHost(event.server, banee, function(host) {
|
||||
// Add host record entry
|
||||
if(host) {
|
||||
@ -217,12 +223,6 @@ var commands = function(dbot) {
|
||||
|
||||
// Ban the user from all channels
|
||||
|
||||
// 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);
|
||||
|
||||
var i = 0;
|
||||
var banChannel = function(channels) {
|
||||
if(i >= channels.length) return;
|
||||
|
Loading…
Reference in New Issue
Block a user