From e43b6ea71524098ad50a96d32dac6ddd26401cef Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 5 Jun 2013 18:07:19 +0000 Subject: [PATCH] stagger kickbanning --- modules/kick/commands.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/kick/commands.js b/modules/kick/commands.js index 75fed4c..85ca5aa 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -48,9 +48,11 @@ var commands = function(dbot) { channels = dbot.config.servers[server].channels; _.each(channels, function(channel) { - this.api.ban(server, banee, channel); - this.api.kick(server, banee, channel, reason + - ' (network-wide ban requested by ' + banner + ')'); + setTimeout(function(channel) { + this.api.ban(server, banee, channel); + this.api.kick(server, banee, channel, reason + + ' (network-wide ban requested by ' + banner + ')'); + }, 1000); }, this); var notifyString = dbot.t('nbanned', {