From c086e7d588008d7ebbb94c368fbcb8c4774ad6cb Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 12 Jun 2019 21:46:05 +0100 Subject: 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). --- functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functions.c') 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; } -- cgit v1.2.3