1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 12:25:42 +02:00

irc: fix parsing of CAP message when there is no prefix (closes #1707)

This commit is contained in:
Sébastien Helleu
2021-10-09 11:27:51 +02:00
parent 68a3aca643
commit ed9104fbea
3 changed files with 45 additions and 24 deletions
+1
View File
@@ -26,6 +26,7 @@ New features::
Bug fixes::
* api: fix search of option when the section is not given in functions config_search_option and config_search_section_option
* irc: fix parsing of CAP message when there is no prefix (issue #1707)
* irc: fix parsing of TAGMSG message when there is a colon before the channel
[[v3.3]]
File diff suppressed because it is too large Load Diff
@@ -538,9 +538,20 @@ TEST(IrcProtocolWithServer, cap)
server_recv (":server 001 alice");
/* not enough arguments */
server_recv ("CAP");
server_recv ("CAP *");
server_recv (":server CAP");
server_recv (":server CAP *");
server_recv ("CAP * LS :identify-msg multi-prefix sasl");
server_recv ("CAP * LS * :identify-msg multi-prefix sasl");
server_recv ("CAP * LIST :identify-msg multi-prefix sasl");
server_recv ("CAP * LIST * :identify-msg multi-prefix sasl");
server_recv ("CAP * NEW :identify-msg multi-prefix sasl");
server_recv ("CAP * DEL :identify-msg multi-prefix sasl");
server_recv ("CAP * ACK :sasl");
server_recv ("CAP * NAK :sasl");
server_recv (":server CAP * LS :identify-msg multi-prefix sasl");
server_recv (":server CAP * LS * :identify-msg multi-prefix sasl");
server_recv (":server CAP * LIST :identify-msg multi-prefix sasl");