mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 11:42:36 +01:00
well let us see
This commit is contained in:
parent
4a3dbd8f3f
commit
5cdd2d927c
@ -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() {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user