From 40ddb682fa25436a0cc177b31406e05c02c7f462 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 25 May 2012 21:36:13 +0100 Subject: [PATCH] fix channel joins on multi server --- run.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run.js b/run.js index dc5ba08..9973c64 100644 --- a/run.js +++ b/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