forked from GitHub/dbot
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 });
|
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 ***/
|
/*** Kick Stats ***/
|
||||||
|
Loading…
Reference in New Issue
Block a user