3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

fixthe entry issuething

This commit is contained in:
reality 2013-08-24 18:54:42 +00:00
parent de54ec5c61
commit 08b46b9a8b
2 changed files with 5 additions and 2 deletions

View File

@ -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)) {

View File

@ -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);
}