3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

Merge pull request #2 from reality/master

Update udp.js
This commit is contained in:
thieson 2014-02-20 06:37:24 +01:00
commit 7f8209544e

View File

@ -10,11 +10,11 @@ var udp = function(dbot) {
server.on("message", function(msg, msginfo) { server.on("message", function(msg, msginfo) {
var message = msg.toString(); var message = msg.toString();
console.log(message); console.log(message);
if (msginfo.address == dbot.config.udp.address) { if (msginfo.address == this.config.address) {
dbot.say(dbot.config.udp.server, dbot.config.udp.channel, message); dbot.say(this.config.server, this.config.channel, message);
} }
}); }.bind(this));
server.bind(dbot.config.udp.port); server.bind(this.config.port);
}; };
exports.fetch = function(dbot) { exports.fetch = function(dbot) {