forked from GitHub/dbot
supress error on joining channel, due to dbot attempting to get info on own join
This commit is contained in:
parent
d87000f78d
commit
42de44b4de
@ -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] = [];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user