3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 11:42:36 +01:00

fix offline notifies

This commit is contained in:
reality 2013-08-05 22:18:47 +00:00
parent 99eb1462ad
commit eb0a61c25b

View File

@ -54,11 +54,11 @@ var report = function(dbot) {
pending = this.pending[event.rUser.id]; pending = this.pending[event.rUser.id];
var notifyUser = function(pending) { var notifyUser = function(pending) {
if(i >= msg.length) { if(i >= pending.length) {
delete this.pending[event.rUser.id]; delete this.pending[event.rUser.id];
return; return;
} }
dbot.say(event.server, pending[i], message); dbot.say(event.server, event.user, pending[i]);
setTimeout(function() { setTimeout(function() {
i++; notifyUser(pending); i++; notifyUser(pending);
}, 1000); }, 1000);