mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
oops
This commit is contained in:
parent
d473d95e42
commit
2ea263f997
@ -139,15 +139,16 @@ var commands = function(dbot) {
|
|||||||
network = this.config.network_name[event.server];
|
network = this.config.network_name[event.server];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
dbot.api.nickserv.getUserHost(event.server, banee, function(host) {
|
||||||
|
// Add host record entry
|
||||||
|
if(host) {
|
||||||
// Ban from current channel first
|
// Ban from current channel first
|
||||||
this.api.ban(server, host, event.channel);
|
this.api.ban(server, host, event.channel);
|
||||||
this.api.kick(server, banee, event.channel, reason +
|
this.api.kick(server, banee, event.channel, reason +
|
||||||
' (network-wide ban requested by ' + banner + ')');
|
' (network-wide ban requested by ' + banner + ')');
|
||||||
channels = _.without(channels, event.channel);
|
channels = _.without(channels, event.channel);
|
||||||
|
|
||||||
dbot.api.nickserv.getUserHost(event.server, banee, function(host) {
|
|
||||||
// Add host record entry
|
|
||||||
if(host) {
|
|
||||||
this.hosts[event.server][banee] = host;
|
this.hosts[event.server][banee] = host;
|
||||||
|
|
||||||
// Create notify string
|
// Create notify string
|
||||||
|
Loading…
Reference in New Issue
Block a user