Now connects! Woo!

This commit is contained in:
Luke Slater 2012-05-19 17:47:35 +01:00
parent 43147af804
commit ec34a861f4

4
run.js
View File

@ -66,7 +66,7 @@ var DBot = function(timers) {
'password': 'lolturtles', 'password': 'lolturtles',
'channels': [ 'channels': [
'#realitest' '#realitest'
]; ]
} }
}; };
@ -77,7 +77,7 @@ var DBot = function(timers) {
var server = this.servers[name]; var server = this.servers[name];
this.instance.addConnection(name, server.server, server.port, this.admin, function(event) { this.instance.addConnection(name, server.server, server.port, this.admin, function(event) {
server.channels.each(function(channel) { server.channels.each(function(channel) {
instance.join(event, channel) this.instance.join(event, channel)
}.bind(this)); }.bind(this));
}.bind(this), server.nickserv, server.password); }.bind(this), server.nickserv, server.password);
} }