From 5e039c814aa7e4d4fe0e2e7be0232c581f87640d Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 9 Nov 2011 22:06:22 +0000 Subject: [PATCH] different join --- run.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.js b/run.js index 41103ec..109701c 100644 --- a/run.js +++ b/run.js @@ -17,9 +17,9 @@ var DBot = function(dModules, timers) { this.instance = jsbot.createJSBot(this.name, 'elara.ivixor.net', 6667, this, function() { if(this.config.hasOwnProperty('channels')) { - for(channel in this.config.channels) { + this.config.channels.each(function(channel) { this.instance.join(channel); - } + }.bind(this)); } }.bind(this));