projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b69461a
)
Handle RPL_INVITING command
author
Darren
<darren@darrenwhitlen.com>
Mon, 11 Nov 2013 10:14:14 +0000
(10:14 +0000)
committer
Darren
<darren@darrenwhitlen.com>
Mon, 11 Nov 2013 10:14:14 +0000
(10:14 +0000)
server/irc/commands.js
patch
|
blob
|
blame
|
history
diff --git
a/server/irc/commands.js
b/server/irc/commands.js
index eb3eb57cfb47c7741d891afc16723033742bd962..da8a77ce5178f4ccac947602e6120209c11b22f8 100644
(file)
--- 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);
},