From 0de8ed662321f25ab78cef094774593e1ce27677 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Fri, 8 Aug 2025 22:38:51 +0100 Subject: Notify STDOUT if a STDIN wasn't processed and was sent to the server instead. --- TODO | 2 +- blabouncer.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3