From 66ead266356c529d905f6b2d09c53fd413594576 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 21 Aug 2013 19:26:45 +0000 Subject: [PATCH] cool if it works --- modules/report/report.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/report/report.js b/modules/report/report.js index d34d2ff..e8ec928 100644 --- a/modules/report/report.js +++ b/modules/report/report.js @@ -140,7 +140,10 @@ var report = function(dbot) { cChan + "\u000f"; } - message = message.replace(/ @([\d\w\s*|-]+?)( |$)/g, " " + colours['nicks'] + + _.each(message.match(/@([\d\w\s*|-]+?)/g), function(user) { + notifier += '[' + colours['nicks'] + user + '\u000f]'; + }); + message = message.replace(/ ( |$)/g, " " + colours['nicks'] + "@$1\u000f "); }