robotirc

Multifonction IRC bot written in Node.js
Log | Files | Refs | README | LICENSE

commit a4405b310b4e5f9116f5cc22b9d462b96e5866f5
parent 3c067188d5d4b4edde5b5f8ed05cb1ef7de73045
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Fri,  3 Jan 2014 00:01:17 +0100

Using correct variable name to display GeoIP data

Diffstat:
Mlib/robotirc.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/robotirc.js b/lib/robotirc.js @@ -108,7 +108,7 @@ client.addListener('message', function(from, to, message) { if (!error && response.statusCode == 200) { var geoip = JSON.parse(response.body); - for (var item in data) { + for (var item in geoip) { client.say(to, item + ": " + geoip[item] + "\n"); } }