mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
concerning
This commit is contained in:
parent
fb61ce21a5
commit
ad2448f2a0
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user