summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-06-05 13:35:30 -0300
committerTingPing <tngpng@gmail.com>2013-06-05 13:35:30 -0300
commitdf0ee53765942d10e074659d88d7956294e74bcb (patch)
treee419da37670b9f5652b064a7c9e08f6ca21aa338 /src/common
parentd0b347683970a34042d47fffc593f4eee35a1ebe (diff)
Handle /CAP LIST output
Closes #635
Diffstat (limited to 'src/common')
-rw-r--r--src/common/proto-irc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index cb4db0cd..ec4a36a3 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -1321,6 +1321,10 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[])
 				{
 					tcp_send_len (serv, "CAP END\r\n", 9);
 				}
+				else if (strncasecmp (word[4], "LIST", 4) == 0)	
+				{
+					EMIT_SIGNAL (XP_TE_CAPACK, sess->server->server_session, word[1], word[5][0]==':' ? ++word_eol[5] : word_eol[5], NULL, NULL, 0);
+				}
 
 				return;
 		}