summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2025-08-09 11:13:27 +0100
committerLuke Bratch <luke@bratch.co.uk>2025-08-09 11:13:27 +0100
commitfe6ac12dbe4a91cd8652421aaaae18fed23cc6e6 (patch)
tree75a33766a2c2a6e43d2a4d6eec9b1d906d35b1fe
parent2136716bdf99b108d64268088742f258ed79fe29 (diff)
Improve output of LISTCLIENTS blabouncer command.
-rw-r--r--blabouncer.c3
-rw-r--r--message.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/blabouncer.c b/blabouncer.c
index b4c88df..f4b084e 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -805,8 +805,9 @@ void dochat(int *serversockfd, int *clientsockfd, struct settings *settings) {
continue;
}
+ // STDIN: List all connected clients
if (strncmp(outgoingmsg, "listclients", strlen("listclients")) == 0) {
- debugprint(DEBUG_SOME, "dochat(): stdin: There are %d blabouncer client(s) connected:\n", numclients(clients));
+ debugprint(DEBUG_SOME, "dochat(): stdin: There are %d blabouncer client(s) connected.\n", numclients(clients));
printf("There are %d blabouncer client(s) connected:\n", numclients(clients));
// Loop through each client in clients struct for connected and authenticated clients...
diff --git a/message.c b/message.c
index 36941ec..99ac0ca 100644
--- a/message.c
+++ b/message.c
@@ -1532,7 +1532,7 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int
} else if (strncasecmp(tokens[1], "LISTCLIENTS", strlen("LISTCLIENTS")) == 0) {
debugprint(DEBUG_SOME, "Client BLABOUNCER LISTCLIENTS found and it is: %s with length %zd!\n", tokens[1], strlen(tokens[1]));
- snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :There are %d blabouncer client(s) connected:", ircdstate->ircnick, numclients(clients));
+ snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :There are %d blabouncer client(s) connected.", ircdstate->ircnick, numclients(clients));
sendtoclient(sourcefd, outgoingmsg, clients, settings, 0);
// Loop through each client in clients struct for connected and authenticated clients...