From 86dcbd11e4d9c74d84dd909eb5996c288951453e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 13 Mar 2002 03:06:31 +0000 Subject: If queried nick did a nick change, it might have crashed irssi. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2599 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-queries.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/irc/core/irc-queries.c') diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c index 49868e6a..5592ede7 100644 --- a/src/irc/core/irc-queries.c +++ b/src/irc/core/irc-queries.c @@ -89,9 +89,10 @@ static void event_nick(SERVER_REC *server, const char *data, char *params, *nick; query = query_find(server, orignick); - if (query != NULL && strcmp(query->name, nick) != 0) { + if (query != NULL) { params = event_get_params(data, 1, &nick); - query_change_nick(query, nick); + if (strcmp(query->name, nick) != 0) + query_change_nick(query, nick); g_free(params); } } -- cgit v1.2.3