mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 11:42:36 +01:00
fixthe entry issuething
This commit is contained in:
parent
de54ec5c61
commit
08b46b9a8b
@ -12,7 +12,7 @@ var pages = function(dbot) {
|
||||
'/notify/:server': function(req, res) {
|
||||
var server = req.params.server,
|
||||
userCount = {},
|
||||
users = [];
|
||||
users = {};
|
||||
|
||||
this.db.scan('notifies', function(notify) {
|
||||
if(!_.has(userCount, notify.user)) {
|
||||
|
@ -142,7 +142,10 @@ var users = function(dbot) {
|
||||
this.api.resolveUser(event.server, event.user, function(user) {
|
||||
if(!user) {
|
||||
this.internalAPI.createUser(event.server,
|
||||
event.user, checkCurrentNick);
|
||||
event.user, function (user) {
|
||||
this.userCache[event.server][user.currentNick] = user.id;
|
||||
checkCurrentNick(user);
|
||||
}.bind(this));
|
||||
} else {
|
||||
checkCurrentNick(user);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user