From 135b6ecbbab26aa89aebe5c074535c9dfdf85fc8 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 20 Apr 2013 16:28:12 +0000 Subject: [PATCH] fix users not getting pushed to chan [#390] --- modules/users/users.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/users/users.js b/modules/users/users.js index 8fa1717..524be1e 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -79,7 +79,7 @@ var users = function(dbot) { }.bind(this)); } else { if(!_.include(user.channels, event.channel.name)) { // User not yet channel user - users.channels.push(event.channel.name); + user.channels.push(event.channel.name); this.internalAPI.addChannelUser(user, event.channel.name, function(err) { }); } @@ -114,7 +114,6 @@ var users = function(dbot) { this.onLoad = function() { dbot.instance.addListener('366', 'users', function(event) { this.api.getChannel(event.server, event.channel.name, function(channel) { - var checkChannelUsers = function(channel) { _.each(event.channel.nicks, function(nick) { var nick = nick.name;