summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2025-08-08 22:38:51 +0100
committerLuke Bratch <luke@bratch.co.uk>2025-08-08 22:38:51 +0100
commit0de8ed662321f25ab78cef094774593e1ce27677 (patch)
tree561aef9a91d0bc4d0e6a92598623ca3fe72d9616
parentcdc21500174966ecf2ca1eedb73eb5aa4d2f344c (diff)
Notify STDOUT if a STDIN wasn't processed and was sent to the server instead.
-rw-r--r--TODO2
-rw-r--r--blabouncer.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/TODO b/TODO
index 22ffb73..eabe733 100644
--- a/TODO
+++ b/TODO
@@ -66,4 +66,4 @@ NickServ HELP with SA receiving full message in one go? e.g. oper 05/01/2025 10:
Allow specifying time zone for timestamps in config.
-Include error messages in response to failed STDIN in STDOUT/STDERR.
+List all missing configuration options if any are missing at startup.
diff --git a/blabouncer.c b/blabouncer.c
index 64b6f36..1c61336 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -806,6 +806,7 @@ void dochat(int *serversockfd, int *clientsockfd, struct settings *settings) {
}
debugprint(DEBUG_FULL, "dochat(): stdin: '%s' not processed as a command, sending to server.\n", outgoingmsg);
+ printf("'%s' not processed as a command, sending to server.\n", outgoingmsg);
// sourcefd = 0 as this is a trusted message
sendtoserver(server_ssl, outgoingmsg, strlen(outgoingmsg), 0, clients, settings);
continue;