From 1702786389a71b28aac9c2f66dc27fa02889de22 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 18 Jul 2019 21:07:06 +0100 Subject: Fix compiler warnings emitted by Clang/LLVM and some older GCC versions. --- message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'message.c') diff --git a/message.c b/message.c index 8eceb4b..3e9f15c 100644 --- a/message.c +++ b/message.c @@ -96,7 +96,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int // If this is a reconnection, JOIN existing channels and catch clients up again if (ircdstate->reconnecting) { // First tell clients if our nick changed - if (!strcmp(ircdstate->ircnick, ircdstate->oldnick) == 0) { + if (!strcmp(ircdstate->ircnick, ircdstate->oldnick)) { debugprint(DEBUG_SOME, "Telling clients about nick change.\n"); char nickmsg[MAXDATASIZE]; snprintf(nickmsg, MAXDATASIZE, ":%s NICK :%s", ircdstate->oldnick, ircdstate->ircnick); -- cgit v1.2.3