From f4d25c0bfa50f1fb11461742598fa34a5f5d0313 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 25 Apr 2015 10:58:45 +0000 Subject: [PATCH] find alias notifies --- modules/report/commands.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/report/commands.js b/modules/report/commands.js index 503c9ba..0bcd383 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -100,11 +100,11 @@ var commands = function(dbot) { 'server': event.server }, function(notify) { _.each(aliases, function(alias) { - if(notify.message.match('banned ' + alias) || - notify.message.match(alias + ' has been unbanned') || - notify.message.match('issued a warning to ' + alias) || - notify.message.match('has quieted ' + alias) || - notify.message.match('has reported ' + alias)) { + if(notify.message.match('banned ' + alias + ' ') || + notify.message.match(' ' + alias + ' has been unbanned') || + notify.message.match('issued a warning to ' + alias + ' ') || + notify.message.match('has quieted ' + alias + ' ') || + notify.message.match('has reported ' + alias + ' ')) { if(notify.type == 'ban') { ban++; if(notify.time > latest_ban.time) { @@ -134,7 +134,7 @@ var commands = function(dbot) { }); _.each(sTimes, function(time) { - event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); + //event.reply('[' + moment(parseInt(time)).format('DD/MM/YYYY') + '] ' + items[time]); }); if(latest_ban.time != 0) {