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

supress error on joining channel, due to dbot attempting to get info on own join

This commit is contained in:
John Maguire 2013-03-21 04:38:16 -04:00
parent d87000f78d
commit 42de44b4de

View File

@ -38,7 +38,7 @@ var users = function(dbot) {
var knownUsers = this.getServerUsers(event.server);
var nick = event.user;
if(event.action == 'JOIN') {
if(event.action == 'JOIN' && nick != dbot.config.name) {
if(!_.has(knownUsers.channelUsers, event.channel.name)) {
knownUsers.channelUsers[event.channel.name] = [];
}