3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

concerning

This commit is contained in:
reality 2015-03-14 09:45:13 +00:00
parent fb61ce21a5
commit ad2448f2a0

View File

@ -298,13 +298,12 @@ var commands = function(dbot) {
'~concerning': function(event) {
var nick = event.params[1].trim();
event.reply('starting');
dbot.api.nickserv.getUserHost(event.server, nick, function(host) {
if(host) {
event.reply('got host');
var results = [];
this.db.scan('notifies', function(notify) {
if(notify && notify.host === host) {
event.reply('found');
results.push(notify.message);
}
}, function() {