forked from GitHub/dbot
do that thing wot i said in [#581]
This commit is contained in:
parent
24ccdeac8f
commit
9848785d38
@ -16,5 +16,6 @@
|
|||||||
"nicks": "",
|
"nicks": "",
|
||||||
"type": ""
|
"type": ""
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"noMissingChans": []
|
||||||
}
|
}
|
||||||
|
@ -78,9 +78,6 @@ var report = function(dbot) {
|
|||||||
|
|
||||||
async.eachSeries(ops, function(nick, next) {
|
async.eachSeries(ops, function(nick, next) {
|
||||||
dbot.api.users.resolveUser(server, nick, function(user) {
|
dbot.api.users.resolveUser(server, nick, function(user) {
|
||||||
console.log(user.mobile);
|
|
||||||
console.log(user.currentNick);
|
|
||||||
console.log(_.include(user.mobile, user.currentNick));
|
|
||||||
if(!_.include(user.mobile, user.currentNick)) {
|
if(!_.include(user.mobile, user.currentNick)) {
|
||||||
perOps = _.without(perOps, user.id);
|
perOps = _.without(perOps, user.id);
|
||||||
}
|
}
|
||||||
@ -88,6 +85,7 @@ var report = function(dbot) {
|
|||||||
});
|
});
|
||||||
}, function() {
|
}, function() {
|
||||||
offlineUsers = perOps;
|
offlineUsers = perOps;
|
||||||
|
if(!_.include(this.config.noMissingChans, cName)) {
|
||||||
_.each(offlineUsers, function(id) {
|
_.each(offlineUsers, function(id) {
|
||||||
if(!this.pending[id]) this.pending[id] = [];
|
if(!this.pending[id]) this.pending[id] = [];
|
||||||
this.pending[id].push({
|
this.pending[id].push({
|
||||||
@ -97,6 +95,7 @@ var report = function(dbot) {
|
|||||||
});
|
});
|
||||||
this.pNotify[id] = true;
|
this.pNotify[id] = true;
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
message = this.internalAPI.formatNotify(type, server,
|
message = this.internalAPI.formatNotify(type, server,
|
||||||
user, cName, message);
|
user, cName, message);
|
||||||
|
Loading…
Reference in New Issue
Block a user