From d473d95e421675e8b8cf8917ed659bd98195b790 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 27 Oct 2015 19:26:58 +0000 Subject: [PATCH] even quicker like --- modules/kick/commands.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/kick/commands.js b/modules/kick/commands.js index 31b6848..5a719c1 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -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;