forked from GitHub/dbot
fix users not getting pushed to chan [#390]
This commit is contained in:
parent
3cd4513fe4
commit
135b6ecbba
@ -79,7 +79,7 @@ var users = function(dbot) {
|
|||||||
}.bind(this));
|
}.bind(this));
|
||||||
} else {
|
} else {
|
||||||
if(!_.include(user.channels, event.channel.name)) { // User not yet channel user
|
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) { });
|
this.internalAPI.addChannelUser(user, event.channel.name, function(err) { });
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +114,6 @@ var users = function(dbot) {
|
|||||||
this.onLoad = function() {
|
this.onLoad = function() {
|
||||||
dbot.instance.addListener('366', 'users', function(event) {
|
dbot.instance.addListener('366', 'users', function(event) {
|
||||||
this.api.getChannel(event.server, event.channel.name, function(channel) {
|
this.api.getChannel(event.server, event.channel.name, function(channel) {
|
||||||
|
|
||||||
var checkChannelUsers = function(channel) {
|
var checkChannelUsers = function(channel) {
|
||||||
_.each(event.channel.nicks, function(nick) {
|
_.each(event.channel.nicks, function(nick) {
|
||||||
var nick = nick.name;
|
var nick = nick.name;
|
||||||
|
Loading…
Reference in New Issue
Block a user