put udp bind in onload so it has this

This commit is contained in:
reality 2014-09-13 19:23:00 +00:00
parent b660d9ce21
commit 0ebdb2dbde

View File

@ -14,7 +14,9 @@ var udp = function(dbot) {
dbot.say(this.config.server, this.config.channel, message); dbot.say(this.config.server, this.config.channel, message);
} }
}.bind(this)); }.bind(this));
this.onLoad = function() {
server.bind(this.config.port); server.bind(this.config.port);
}.bind(this);
}; };
exports.fetch = function(dbot) { exports.fetch = function(dbot) {