1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +02:00

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 96ed471261).
This commit is contained in:
Sébastien Helleu
2023-06-01 22:05:42 +02:00
parent 3d8c55722c
commit 02a20507cb
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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)