summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-13 03:06:31 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-13 03:06:31 +0000
commit86dcbd11e4d9c74d84dd909eb5996c288951453e (patch)
tree81086287175ad9837e9701af9e817153da14e54b /src/irc
parent649253e180206befcdecfc672c90e0fbeffa0da7 (diff)
downloadirssi-86dcbd11e4d9c74d84dd909eb5996c288951453e.zip
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
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-queries.c5
1 files changed, 3 insertions, 2 deletions
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);
}
}