From e04ffa5f25b701baa5ca82f8be55f28203f72480 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 18 Aug 2013 17:46:57 +0000 Subject: [PATCH] dope --- modules/log/log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/log/log.js b/modules/log/log.js index 762fe82..2d503db 100644 --- a/modules/log/log.js +++ b/modules/log/log.js @@ -25,7 +25,7 @@ var log = function(dbot) { this.onLoad = function() { dbot.api.event.addHook('command', function(event) { 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', { 'time': new Date().toUTCString(), 'command': event.message,