From 339fb3ddfbeaa0a3fb9abecac554315ba2a7c930 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 27 Oct 2015 19:22:29 +0000 Subject: [PATCH] ban from current channel first --- modules/kick/commands.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/kick/commands.js b/modules/kick/commands.js index 11a9958..31b6848 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -216,6 +216,13 @@ var commands = function(dbot) { dbot.say(event.server, 'NickServ', 'FREEZE ' + banee + ' ON ' + reason); // 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;