summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-06-10 22:21:29 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-06-10 22:21:29 +0100
commitc80ce9eceb6412225bfa3a62bc557b17147119f7 (patch)
treeb013ac74474f622bc1f71e9a69c64b0ede3c3fcf /blabouncer.c
parentc84d8c493ccdc840a866a9f51f10fe6b1f2bc377 (diff)
Use debugprint() instead of printf() if the server times out.
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blabouncer.c b/blabouncer.c
index bf27835..d14223e 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -452,7 +452,7 @@ void dochat(int *serversockfd, int *clientsockfd, struct settings *settings) {
// Before we wait for a message, let's make sure the server is still responding
// TODO - Code duplication, make a function and share with socket error code below
if (ircdstrings.lastmessagetime < time(NULL) - SERVERTIMEOUT) {
- printf("Server has timed out (%ld seconds), reconnecting!\n", time(NULL) - ircdstrings.lastmessagetime);
+ debugprint(DEBUG_CRIT, "Server has timed out (%ld seconds), reconnecting!\n", time(NULL) - ircdstrings.lastmessagetime);
// Tell all clients if we timed out
char alertmsg[MAXDATASIZE];
snprintf(alertmsg, MAXDATASIZE, "NOTICE %s :Server has timed out (%ld seconds), reconnecting!", ircdstrings.ircnick, time(NULL) - ircdstrings.lastmessagetime);