mirror of
https://github.com/reality/dbot.git
synced 2024-12-02 17:09:29 +01:00
concerning
This commit is contained in:
parent
fb61ce21a5
commit
ad2448f2a0
@ -298,13 +298,12 @@ var commands = function(dbot) {
|
|||||||
|
|
||||||
'~concerning': function(event) {
|
'~concerning': function(event) {
|
||||||
var nick = event.params[1].trim();
|
var nick = event.params[1].trim();
|
||||||
event.reply('starting');
|
|
||||||
dbot.api.nickserv.getUserHost(event.server, nick, function(host) {
|
dbot.api.nickserv.getUserHost(event.server, nick, function(host) {
|
||||||
if(host) {
|
if(host) {
|
||||||
event.reply('got host');
|
|
||||||
var results = [];
|
var results = [];
|
||||||
this.db.scan('notifies', function(notify) {
|
this.db.scan('notifies', function(notify) {
|
||||||
if(notify && notify.host === host) {
|
if(notify && notify.host === host) {
|
||||||
|
event.reply('found');
|
||||||
results.push(notify.message);
|
results.push(notify.message);
|
||||||
}
|
}
|
||||||
}, function() {
|
}, function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user