From ed24151c06ebf40ab120b01d8f8ae06a7b6cc0cb Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 29 May 2019 22:23:37 +0100 Subject: Inform all clients when a client sends BLABOUNCER QUIT. --- blabouncer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blabouncer.c b/blabouncer.c index 48bdbd1..60ccf91 100644 --- a/blabouncer.c +++ b/blabouncer.c @@ -1982,6 +1982,8 @@ int processircmessage(SSL *server_ssl, char *str, int source, struct client *cli // QUIT received, send QUIT message to server and exit cleanly } else if (strncasecmp(tokens[1], "QUIT", strlen("QUIT")) == 0) { debugprint("Client QUIT found and it is: %s with length %zd!\n", tokens[1], strlen(tokens[1])); + snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :Exiting on BLABOUNCER QUIT command from client with fd '%d'.", ircdstrings->ircnick, sourcefd); + sendtoallclients(clients, outgoingmsg, EXCEPT_NONE, settings); // Combine "QUIT :" with any optional quit message the user provided char quitmsg[MAXDATASIZE]; if (counter > 2) { -- cgit v1.2.3