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. --- blabouncer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blabouncer.c') 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