summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-29 22:23:37 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-29 22:23:37 +0100
commited24151c06ebf40ab120b01d8f8ae06a7b6cc0cb (patch)
treedcb151a5e7a3dc65d580deb1e35423487c9a8c97
parent25d3f37161417b7820640ce64bdb7d2433f5e84b (diff)
Inform all clients when a client sends BLABOUNCER QUIT.
-rw-r--r--blabouncer.c2
1 files changed, 2 insertions, 0 deletions
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) {