From 73ca19ca733ba8592400815907d1d9c5d0504a3e Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 21 Aug 2013 18:34:31 +0000 Subject: [PATCH] dont use coloured strings as db keys lololo --- modules/report/report.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/report/report.js b/modules/report/report.js index 3db2803..a487d07 100644 --- a/modules/report/report.js +++ b/modules/report/report.js @@ -128,19 +128,20 @@ var report = function(dbot) { }, function() {}); var notifier = event.user; + var cChan = channelName; if(_.has(this.config.colours, event.server)) { var colours = this.config.colours[event.server]; notifier = colours['nicks'] + notifier + '\u000f'; type = colours['type'] + 'notify' + '\u000f'; if(_.has(colours['channels'], channelName)) { - channelName = colours['channels'][channelName] + - channelName + "\u000f"; + cChan = colours['channels'][channelName] + + cChan + "\u000f"; } } this.api.notify(event.server, channelName, dbot.t('notify', { - 'channel': channelName, + 'channel': cChan, 'notifier': notifier, 'message': message }));