ban from current channel first

This commit is contained in:
reality 2015-10-27 19:22:29 +00:00
parent ef500e2d96
commit 339fb3ddfb

View File

@ -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;