mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
fix offline notifies
This commit is contained in:
parent
99eb1462ad
commit
eb0a61c25b
@ -54,11 +54,11 @@ var report = function(dbot) {
|
||||
pending = this.pending[event.rUser.id];
|
||||
|
||||
var notifyUser = function(pending) {
|
||||
if(i >= msg.length) {
|
||||
if(i >= pending.length) {
|
||||
delete this.pending[event.rUser.id];
|
||||
return;
|
||||
}
|
||||
dbot.say(event.server, pending[i], message);
|
||||
dbot.say(event.server, event.user, pending[i]);
|
||||
setTimeout(function() {
|
||||
i++; notifyUser(pending);
|
||||
}, 1000);
|
||||
|
Loading…
Reference in New Issue
Block a user