From be7d5a41cdb2318c884be8ccfc814d9eda96f9d7 Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 17 May 2013 08:52:24 +0000 Subject: [PATCH] use current channel if no admin channel defined [#261] --- modules/kick/commands.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/kick/commands.js b/modules/kick/commands.js index d5cd3b3..7f9f671 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -107,7 +107,11 @@ var commands = function(dbot) { notifyString += ' ' + dbot.t('quote_recorded', { 'user': banee }); } - dbot.api.report.notify(server, this.config.admin_channels[event.server], notifyString); + var notifyChannel = event.channel.name; + if(this.config.admin_channels[event.server]) { + notifyChannel = this.config.admin_channels[event.server]; + } + dbot.api.report.notify(server, notifyChannel, notifyString); }, /*** Kick Stats ***/