robotirc

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

commit 95727efed904100a8cf52249afcd94d5aee10c85
parent 70fb7f17aabb23602a955454d69e77cd1dfb193d
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu,  2 Jan 2014 23:55:29 +0100

Adding CTCP VERSION handler

Diffstat:
Mlib/robotirc.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/lib/robotirc.js b/lib/robotirc.js @@ -41,6 +41,14 @@ client.addListener('error', function(message) { +/**[ CTCP VERSION handler ]***************************************************/ + +client.addListener('ctcp-version', function(from, to, message) { + client.ctcp(from, 'notice', "VERSION " + config.options.realName); +}); + + + /**[ Message handler ]********************************************************/ client.addListener('message', function(from, to, message) {