mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
Fixed second new_user event misfire
This commit is contained in:
parent
3bfc82c7bc
commit
c813f6087c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user