diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-05-21 21:16:32 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-05-21 21:16:32 +0100 |
commit | 19b1a1e816e79d621f23e56587ba59c24c9c70cb (patch) | |
tree | 8c75b2968841419dd6d3ee8f1289ca84d5d55b1e | |
parent | a9345b413f8c67dd8d6fcfd047a786e542202116 (diff) |
Correctly clear pending WHOIS flag only when receiving 315 RPL_ENDOFWHO.
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | blabouncer.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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; } } |