summaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-07-18 21:07:06 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-07-18 21:07:06 +0100
commit1702786389a71b28aac9c2f66dc27fa02889de22 (patch)
tree3c38f4f9a6a2aa22e5667a7f1de2c16476982413 /message.c
parent8f9a58e181d16cad2b86b8116bfe9470774bbdee (diff)
Fix compiler warnings emitted by Clang/LLVM and some older GCC versions.
Diffstat (limited to 'message.c')
-rw-r--r--message.c2
1 files changed, 1 insertions, 1 deletions
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);