diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-06-12 21:46:05 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-06-12 21:46:05 +0100 |
commit | c086e7d588008d7ebbb94c368fbcb8c4774ad6cb (patch) | |
tree | 9443904daab6fc529b85e3b453fadbb6cad9a43c | |
parent | 1b7abf6ee18697e28140a237df31426da37b594c (diff) |
Don't print a message to the terminal when a channel already exists (it is a normal occurence when reconnecting, but might be bad in some other situation).
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | functions.c | 3 |
2 files changed, 2 insertions, 2 deletions
@@ -9,4 +9,3 @@ Might need to #include <limits.h> in blabouncer.c to make some operating systems Allow reloading the configuration file while running (at least for things like replayseconds, replaymode) - BLABOUNCER command and SIGHUP? -"error: createchannel(): channel name already exists.\n: Success" printed to terminal upon server reconnection. diff --git a/functions.c b/functions.c index 31dce90..5dbeb0c 100644 --- a/functions.c +++ b/functions.c @@ -569,7 +569,8 @@ int createchannel(struct channel *channels, char *name, char *topic, char *topic // Make sure the channel doesn't already exist for (int i = 0; i < MAXCHANNELS; i++) { if (strncmp(channels[i].name, name, strlen(name)) == 0) { - perror("error: createchannel(): channel name already exists.\n"); + // Note that this may be happening because we just reconnected + debugprint(DEBUG_CRIT, "error: createchannel(): channel name already exists.\n"); return 0; break; } |