3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

Fixed second new_user event misfire

This commit is contained in:
Sam Nicholls 2013-02-03 16:49:10 +00:00
parent 3bfc82c7bc
commit c813f6087c

View File

@ -79,7 +79,7 @@ var users = function(dbot) {
nick = this.api.resolveUser(event.server, nick); nick = this.api.resolveUser(event.server, nick);
} else { } else {
knownUsers.users.push(nick); 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)) { if(!_.include(channelUsers, nick)) {
channelUsers.push(nick); channelUsers.push(nick);