mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
use current channel if no admin channel defined [#261]
This commit is contained in:
parent
2b57300f65
commit
be7d5a41cd
@ -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 ***/
|
||||
|
Loading…
Reference in New Issue
Block a user