summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
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);