From c813f6087cdae3c19b225205fc490938d6735c78 Mon Sep 17 00:00:00 2001 From: Sam Nicholls Date: Sun, 3 Feb 2013 16:49:10 +0000 Subject: [PATCH] Fixed second new_user event misfire --- modules/users/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/users/users.js b/modules/users/users.js index 37dab11..69bf4c4 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -79,7 +79,7 @@ var users = function(dbot) { nick = this.api.resolveUser(event.server, nick); } else { knownUsers.users.push(nick); - dbot.api.emit('new_user', [ event.server, nick ]); + dbot.api.event.emit('new_user', [ event.server, nick ]); } if(!_.include(channelUsers, nick)) { channelUsers.push(nick);