forked from GitHub/dbot
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) {
|
var banChannel = function(channels) {
|
||||||
if(i >= channels.length) return;
|
if(i >= channels.length) return;
|
||||||
var channel = channels[i];
|
var channel = channels[i];
|
||||||
this.api.ban(server, banee, channel);
|
this.api.ban(server, host, channel);
|
||||||
this.api.kick(server, banee, channel, reason +
|
this.api.kick(server, banee, channel, reason +
|
||||||
' (network-wide ban requested by ' + banner + ')');
|
' (network-wide ban requested by ' + banner + ')');
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
@ -5,8 +5,8 @@ var kick = function(dbot) {
|
|||||||
this.tempBans = dbot.db.tempBans;
|
this.tempBans = dbot.db.tempBans;
|
||||||
|
|
||||||
this.api = {
|
this.api = {
|
||||||
'ban': function(server, user, channel) {
|
'ban': function(server, host, channel) {
|
||||||
dbot.say(server, this.config.chanserv, 'ban ' + channel + ' ' + user);
|
dbot.instance.connections[server].send('MODE ' + channel + ' +b ' + host);
|
||||||
},
|
},
|
||||||
|
|
||||||
'quiet': function(server, user, channel) {
|
'quiet': function(server, user, channel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user