From 36372a511c41279845d52fecc5e55b02f2c615bb Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 14 Mar 2015 09:59:16 +0000 Subject: [PATCH] also glob name --- modules/report/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/report/commands.js b/modules/report/commands.js index edb6835..dcacc2b 100644 --- a/modules/report/commands.js +++ b/modules/report/commands.js @@ -302,11 +302,11 @@ var commands = function(dbot) { if(host) { var results = []; this.db.scan('notifies', function(notify) { - if(notify && _.has(notify, 'host') && notify.host == host) { + if(notify && _.has(notify, 'host') && (notify.host == host || notify.message.split(' ')[0] == nick)) { results.push(notify.message); } }, function() { - event.reply(nick + ' has sought help ' + results.length + ' times under the host ' + host); + event.reply(nick + ' has sought help ' + results.length + ' times under the host ' + host + ' or nick ' + nick); _.each(results, function(n) { event.reply(n); });