summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-10 16:23:37 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-10 16:23:37 +0000
commit25ed0acc654b1ad46e821758c3d67bb409b4406c (patch)
tree73efd924c055a08ccb387bed50c404334295ac1d
parentaae7eae9a041457f7a3b8ea2abef7b41b8da162d (diff)
downloadirssi-25ed0acc654b1ad46e821758c3d67bb409b4406c.zip
If you had query with "X" but the nick really was "x", and after nick change
to "X" you saw "X changed nick to X" git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2561 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/irc/core/irc-queries.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c
index 402aa75d..50fed22b 100644
--- a/src/irc/core/irc-queries.c
+++ b/src/irc/core/irc-queries.c
@@ -81,7 +81,7 @@ static void event_nick(SERVER_REC *server, const char *data,
char *params, *nick;
query = query_find(server, orignick);
- if (query != NULL) {
+ if (query != NULL && strcmp(query->name, nick) != 0) {
params = event_get_params(data, 1, &nick);
query_change_nick(query, nick);
g_free(params);