summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-21 21:16:32 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-21 21:16:32 +0100
commit19b1a1e816e79d621f23e56587ba59c24c9c70cb (patch)
tree8c75b2968841419dd6d3ee8f1289ca84d5d55b1e /blabouncer.c
parenta9345b413f8c67dd8d6fcfd047a786e542202116 (diff)
Correctly clear pending WHOIS flag only when receiving 315 RPL_ENDOFWHO.
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}