diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 18:35:45 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 32c99047f4972c3a06f9c320f0fde0b33799e189 (patch) | |
tree | 18fc566b88c5f1464bfc7d4be35d4b81c6a3a6ac /src | |
parent | 2ef9509dbef2a3c5a92837997b74ca3fcce1ede4 (diff) | |
download | weechat-32c99047f4972c3a06f9c320f0fde0b33799e189.zip |
irc: use parsed command parameters in "437" command callback
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index e0704adfb..8bff30513 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -6240,7 +6240,7 @@ IRC_PROTOCOL_CALLBACK(433) * Callback for the IRC command "437": nick/channel temporarily unavailable. * * Command looks like: - * :server 437 * mynick :Nick/channel is temporarily unavailable + * 437 * mynick :Nick/channel is temporarily unavailable */ IRC_PROTOCOL_CALLBACK(437) @@ -6255,8 +6255,8 @@ IRC_PROTOCOL_CALLBACK(437) if (!server->is_connected) { - if ((argc >= 4) - && (irc_server_strcasecmp (server, server->nick, argv[3]) == 0)) + if ((num_params >= 2) + && (irc_server_strcasecmp (server, server->nick, params[1]) == 0)) { ptr_buffer = irc_msgbuffer_get_target_buffer (server, NULL, command, NULL, NULL); |