summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}
}