From 19b1a1e816e79d621f23e56587ba59c24c9c70cb Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Tue, 21 May 2019 21:16:32 +0100 Subject: Correctly clear pending WHOIS flag only when receiving 315 RPL_ENDOFWHO. --- TODO | 2 ++ blabouncer.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index cf8c02d..04e385d 100644 --- a/TODO +++ b/TODO @@ -27,3 +27,5 @@ Support autojoining passworded channels. Test CTCP. Reconnect server if we get disconnected for some reason. + +Do we need to ACK end of CAP requests for CAP multi-prefix? diff --git a/blabouncer.c b/blabouncer.c index eaa39c6..e839477 100644 --- a/blabouncer.c +++ b/blabouncer.c @@ -1055,7 +1055,7 @@ int processircmessage(SSL *server_ssl, char *str, int source, struct client *cli if (clients[i].pendingwho == 1 && clients[i].fd) { sendtoclient(clients[i].fd, str, clients, settings); // And clear the pending flag if it's 315 (RPL_ENDOFWHO) - if (strncmp(tokens[1], "329", strlen(tokens[1])) == 0) { + if (strncmp(tokens[1], "315", strlen(tokens[1])) == 0) { clients[i].pendingwho = 0; } } -- cgit v1.2.3