3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

well let us see

This commit is contained in:
reality 2013-08-25 23:20:14 +00:00
parent 4a3dbd8f3f
commit 5cdd2d927c
2 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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) {