fixnomissingchan

This commit is contained in:
reality 2015-02-18 16:12:48 +00:00
parent 77e67b637b
commit d84b94f050

View File

@ -68,16 +68,18 @@ console.log('removing ' + uPart);
});
}, function() {
// Queue notifies for offline ops
_.each(offlineOps, function(op) {
if(!this.pending[op.id]) this.pending[op.id] = [];
this.pending[op.id].push({
'time': new Date().getTime(),
'channel': cName,
'user': user.id,
'message': message
});
this.pNotify[op.id] = true;
}, this);
if(!_.include(this.config.noMissingChans, cName)) {
_.each(offlineOps, function(op) {
if(!this.pending[op.id]) this.pending[op.id] = [];
this.pending[op.id].push({
'time': new Date().getTime(),
'channel': cName,
'user': user.id,
'message': message
});
this.pNotify[op.id] = true;
}, this);
}
// Send notifies to online ops
ops = _.difference(ops, _.keys(offlineOps));