diff options
author | Patrick Griffis <tingping@tingping.se> | 2016-01-28 16:02:04 -0500 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-01-28 16:02:04 -0500 |
commit | 7a85c9160dbff92502f60c2651e572039de3e8ba (patch) | |
tree | 2ffcf0c68f96fbd5a2d4f85b2e72e9a1a968a9c8 /src/common/proto-irc.c | |
parent | 4e061a43b3453a9856d34250c3913175c45afe9d (diff) |
Add support for cap-notify
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r-- | src/common/proto-irc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index d8f15cb5..b737d23b 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -1280,7 +1280,7 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[], word[5][0] == ':' ? word_eol[5] + 1 : word_eol[5], tags_data); } - else if (strncasecmp (word[4], "LS", 2) == 0) + else if (strncasecmp (word[4], "LS", 2) == 0 || strncasecmp (word[4], "NEW", 3) == 0) { inbound_cap_ls (serv, word[1], word[5][0] == ':' ? word_eol[5] + 1 : word_eol[5], @@ -1296,6 +1296,12 @@ process_named_msg (session *sess, char *type, char *word[], char *word_eol[], word[5][0] == ':' ? word_eol[5] + 1 : word_eol[5], tags_data); } + else if (strncasecmp (word[4], "DEL", 3) == 0) + { + inbound_cap_del (serv, word[1], + word[5][0] == ':' ? word_eol[5] + 1 : word_eol[5], + tags_data); + } return; } |