forked from GitHub/dbot
dope
This commit is contained in:
parent
c513e8cd33
commit
e04ffa5f25
@ -25,7 +25,7 @@ var log = function(dbot) {
|
|||||||
this.onLoad = function() {
|
this.onLoad = function() {
|
||||||
dbot.api.event.addHook('command', function(event) {
|
dbot.api.event.addHook('command', function(event) {
|
||||||
var logChannel = this.config.logChannel[event.server];
|
var logChannel = this.config.logChannel[event.server];
|
||||||
if(logChannel && !_.include(this.ignoredCommands, command.split(' ')[0])) {
|
if(logChannel && !_.include(this.ignoredCommands, event.message.split(' ')[0])) {
|
||||||
dbot.say(event.server, logChannel, dbot.t('log_message', {
|
dbot.say(event.server, logChannel, dbot.t('log_message', {
|
||||||
'time': new Date().toUTCString(),
|
'time': new Date().toUTCString(),
|
||||||
'command': event.message,
|
'command': event.message,
|
||||||
|
Loading…
Reference in New Issue
Block a user