From d1254e9c54a1d609fa900d81a05c373d5480225e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 28 Dec 2019 20:05:26 -0500 Subject: Intercept client QUIT with no parameter Oops! Clients could get pounce to quit if they didn't send a message. --- client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client.c b/client.c index 45ab179..0766ef1 100644 --- a/client.c +++ b/client.c @@ -242,6 +242,7 @@ static void clientParse(struct Client *client, char *line) { static bool intercept(const char *line, size_t len) { if (len >= 4 && !memcmp(line, "CAP ", 4)) return true; + if (len == 4 && !memcmp(line, "QUIT", 4)) return true; if (len >= 5 && !memcmp(line, "QUIT ", 5)) return true; if (len >= 7 && !memcmp(line, "NOTICE ", 7)) return true; if (len >= 8 && !memcmp(line, "PRIVMSG ", 8)) return true; -- cgit 1.4.1