diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-06-01 22:05:42 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-06-02 18:50:45 +0200 |
commit | 02a20507cbed73323657e2db0a47e1f576e10756 (patch) | |
tree | 1133de7db4c57ab8fd48c7c53aee4cbe9aff9157 /src/plugins/relay | |
parent | 3d8c55722c79639680b249c2a5636b36b0fc4feb (diff) | |
download | weechat-02a20507cbed73323657e2db0a47e1f576e10756.zip |
relay: fix connection with IRC clients sending "CAP REQ :" (without capability) and not sending "CAP END" (issue #1040, issue #1796)
The bug was fixed in version 2.0 (issue #1040) but a regression in version 3.7
happened while using the new IRC parser for message arguments (issue #1796,
commit 96ed47126130ac62350aef4a9236009b7fc3cd5f).
Diffstat (limited to 'src/plugins/relay')
-rw-r--r-- | src/plugins/relay/irc/relay-irc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c index d6953590c..6382142db 100644 --- a/src/plugins/relay/irc/relay-irc.c +++ b/src/plugins/relay/irc/relay-irc.c @@ -1322,6 +1322,8 @@ relay_irc_recv_command_capab (struct t_relay_client *client, server_caps = RELAY_IRC_DATA(client, server_capabilities); for (i = 1; i < num_params; i++) { + if (!params[i][0]) + continue; num_caps_received++; capability = relay_irc_search_server_capability (params[i]); if (capability >= 0) |