diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c index f580c7c0..2a0ef852 100644 --- a/src/fe-common/core/chat-completion.c +++ b/src/fe-common/core/chat-completion.c @@ -162,7 +162,7 @@ static void sig_message_join(SERVER_REC *server, const char *channel, CHANNEL_REC *chanrec; chanrec = channel_find(server, channel); - if (channel != NULL) + if (chanrec != NULL) CHANNEL_LAST_MSG_ADD(chanrec, nick, FALSE); }