diff --git a/modules/kick/commands.js b/modules/kick/commands.js index ff6da4e..ab7b836 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -216,7 +216,7 @@ var commands = function(dbot) { var banChannel = function(channels) { if(i >= channels.length) return; var channel = channels[i]; - this.api.ban(server, banee, channel); + this.api.ban(server, host, channel); this.api.kick(server, banee, channel, reason + ' (network-wide ban requested by ' + banner + ')'); setTimeout(function() { diff --git a/modules/kick/kick.js b/modules/kick/kick.js index f32188b..fe47475 100644 --- a/modules/kick/kick.js +++ b/modules/kick/kick.js @@ -5,8 +5,8 @@ var kick = function(dbot) { this.tempBans = dbot.db.tempBans; this.api = { - 'ban': function(server, user, channel) { - dbot.say(server, this.config.chanserv, 'ban ' + channel + ' ' + user); + 'ban': function(server, host, channel) { + dbot.instance.connections[server].send('MODE ' + channel + ' +b ' + host); }, 'quiet': function(server, user, channel) {