mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
fix channel joins on multi server
This commit is contained in:
parent
1e23e18807
commit
40ddb682fa
8
run.js
8
run.js
@ -77,10 +77,10 @@ var DBot = function(timers) {
|
||||
if(this.servers.hasOwnProperty(name)) {
|
||||
var server = this.servers[name];
|
||||
this.instance.addConnection(name, server.server, server.port, this.admin, function(event) {
|
||||
server.channels.each(function(channel) {
|
||||
console.log('joining ' + channel + ' on ' + server.server);
|
||||
this.instance.join(event, channel)
|
||||
}.bind(this));
|
||||
var server = this.servers[event.server];
|
||||
for(var i=0;i<server.channels.length;i++) {
|
||||
this.instance.join(event, server.channels[i]);
|
||||
}
|
||||
}.bind(this), server.nickserv, server.password);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user