diff --git a/modules/log/log.js b/modules/log/log.js index 45127fe..2515e0b 100644 --- a/modules/log/log.js +++ b/modules/log/log.js @@ -7,7 +7,7 @@ var _ = require('underscore')._; var log = function(dbot) { this.api = { 'log': function(server, user, message) { - var logChannel = this.config.logChannel[event.server]; + var logChannel = this.config.logChannel[server]; dbot.say(server, logChannel, dbot.t('log_message', { 'time': new Date().toUTCString(), 'command': message,