From 77c597559292f018a0e5122ccbfd34bc35e43e5e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 3 Oct 2021 16:15:45 -0400 Subject: Intercept client PONG Since pounce responds to server PINGs itself and doesn't relay them to clients, the only PING a client could be responding to is one of pounce's, in which case it doesn't make sense to relay the PONG to the server. --- client.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client.c b/client.c index 11962d0..10b28f8 100644 --- a/client.c +++ b/client.c @@ -340,6 +340,11 @@ static void handlePalaver(struct Client *client, struct Message *msg) { clientProduce(client, buf); } +static void handlePong(struct Client *client, struct Message *msg) { + (void)client; + (void)msg; +} + static const struct { bool intercept; bool need; @@ -352,6 +357,7 @@ static const struct { { false, false, "USER", handleUser }, { true, false, "CAP", handleCap }, { true, false, "PALAVER", handlePalaver }, + { true, false, "PONG", handlePong }, { true, true, "NOTICE", handlePrivmsg }, { true, true, "PRIVMSG", handlePrivmsg }, { true, true, "QUIT", handleQuit }, -- cgit 1.4.1