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

thatshoulddo it

This commit is contained in:
reality 2013-08-24 19:03:13 +00:00
parent 2263f884f0
commit 5358d1be96

View File

@ -159,7 +159,7 @@ var users = function(dbot) {
dbot.api.event.emit('new_channel_user', [ event.rUser, event.rChannel ]); dbot.api.event.emit('new_channel_user', [ event.rUser, event.rChannel ]);
} }
if(!_.has(event.channel, 'nicks') || !_.has(event.channel.nicks, event.rUser.currentNick)) { if(event.action != 'JOIN' && (!_.has(event.channel, 'nicks') || !_.has(event.channel.nicks, event.rUser.currentNick))) {
return done(); return done();
} }
var cUser = event.channel.nicks[event.rUser.currentNick]; var cUser = event.channel.nicks[event.rUser.currentNick];