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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user