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