From 5cdd2d927c61141e399cfac0f4c9a7c9a2900607 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 25 Aug 2013 23:20:14 +0000 Subject: [PATCH] well let us see --- modules/kick/commands.js | 2 +- modules/kick/kick.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {