From ed93f91d96fdb9dbdbc3d08c45887dbca087297e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 14 Aug 2001 11:22:19 +0000 Subject: [PATCH] Typofix - might have caused a crash if channel was destroyed with /WINDOW CLOSE. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1753 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/chat-completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }