Handle RPL_INVITING command
authorDarren <darren@darrenwhitlen.com>
Mon, 11 Nov 2013 10:14:14 +0000 (10:14 +0000)
committerDarren <darren@darrenwhitlen.com>
Mon, 11 Nov 2013 10:14:14 +0000 (10:14 +0000)
server/irc/commands.js

index eb3eb57cfb47c7741d891afc16723033742bd962..da8a77ce5178f4ccac947602e6120209c11b22f8 100644 (file)
@@ -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);
     },