mirror of
https://github.com/reality/dbot.git
synced 2024-12-28 05:32:50 +01:00
different join
This commit is contained in:
parent
a057dbf85c
commit
5e039c814a
4
run.js
4
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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user