From 9a1da609fe7e11442cdb7ed1e09eb7b99b98f45c Mon Sep 17 00:00:00 2001 From: Darren Date: Mon, 11 Nov 2013 10:14:14 +0000 Subject: [PATCH] Handle RPL_INVITING command --- server/irc/commands.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/irc/commands.js b/server/irc/commands.js index eb3eb57..da8a77c 100644 --- a/server/irc/commands.js +++ b/server/irc/commands.js @@ -34,6 +34,7 @@ irc_numerics = { '331': 'RPL_NOTOPIC', '332': 'RPL_TOPIC', '333': 'RPL_TOPICWHOTIME', + '341': 'RPL_INVITING', '353': 'RPL_NAMEREPLY', '364': 'RPL_LINKS', '365': 'RPL_ENDOFLINKS', @@ -377,6 +378,13 @@ handlers = { }); }, + 'RPL_INVITING': function (command) { + this.irc_connection.emit('channel ' + command.params[1] + ' invited', { + nick: command.params[0], + channel: command.params[1] + }); + }, + 'PING': function (command) { this.irc_connection.write('PONG ' + command.trailing); }, -- 2.25.1