From 3e3e778a7725a80be7f7b4a9bdffd535efcc0093 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 11 May 2012 14:16:27 +0200 Subject: o Using NOTICE instead of PRIVMSG. --- lib/BitrafBot.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/BitrafBot.js b/lib/BitrafBot.js index b40f62e..c973717 100644 --- a/lib/BitrafBot.js +++ b/lib/BitrafBot.js @@ -84,7 +84,7 @@ function BitrafBot(config) { irc.on('connected', function(server) { console.log('connected to ' + server); irc.join(config.channel, function(error) { - irc.privmsg(config.channel, 'well hello yall'); + irc.notice(config.channel, 'well hello yall'); }); }); irc.on('privmsg', function(from, to, message) { @@ -102,10 +102,10 @@ function BitrafBot(config) { }); res.on('end', function () { var s = onCheckinsEnd(chunks); - irc.privmsg(to, s); + irc.notice(to, s); }); }).on('error', function(e) { - irc.privmsg(to, 'Problem with request: ' + e.message); + irc.notice(to, 'Problem with request: ' + e.message); }); } else if(message == ',who') { @@ -122,10 +122,10 @@ function BitrafBot(config) { }); res.on('end', function () { var s = onWhoEnd(chunks); - irc.privmsg(to, s); + irc.notice(to, s); }); }).on('error', function(e) { - irc.privmsg(to, 'Problem with request: ' + e.message); + irc.notice(to, 'Problem with request: ' + e.message); }); } }); -- cgit v1.2.3