concerning

This commit is contained in:
reality 2015-03-14 09:47:59 +00:00
parent ad2448f2a0
commit 89384492d1

View File

@ -302,7 +302,7 @@ var commands = function(dbot) {
if(host) { if(host) {
var results = []; var results = [];
this.db.scan('notifies', function(notify) { this.db.scan('notifies', function(notify) {
if(notify && notify.host === host) { if(notify && _.has(notify, 'host') && notify.host === host) {
event.reply('found'); event.reply('found');
results.push(notify.message); results.push(notify.message);
} }