3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

use current channel if no admin channel defined [#261]

This commit is contained in:
reality 2013-05-17 08:52:24 +00:00
parent 2b57300f65
commit be7d5a41cd

View File

@ -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 ***/