diff options
author | Timo Sirainen <cras@irssi.org> | 2002-03-13 03:15:39 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-03-13 03:15:39 +0000 |
commit | fc20431dbb31865b7825ebf84e248e6ddc4861ac (patch) | |
tree | 862d0e2f331f82cfa2adea2e9d69a5f08a0f3162 /src/fe-common/core/fe-queries.c | |
parent | 86dcbd11e4d9c74d84dd909eb5996c288951453e (diff) | |
download | irssi-fc20431dbb31865b7825ebf84e248e6ddc4861ac.zip |
when autochanging query's nick to be correct case, don't print the
"nick changed" message
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2600 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/fe-queries.c')
-rw-r--r-- | src/fe-common/core/fe-queries.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-queries.c b/src/fe-common/core/fe-queries.c index 40df4ec9..1ea056e9 100644 --- a/src/fe-common/core/fe-queries.c +++ b/src/fe-common/core/fe-queries.c @@ -119,8 +119,12 @@ static void signal_query_nick_changed(QUERY_REC *query, const char *oldnick) format_create_dest_tag(&dest, query->server, query->server_tag, query->name, MSGLEVEL_CLIENTNOTICE, NULL); - printformat_dest(&dest, TXT_NICK_CHANGED, oldnick, - query->name, query->name); + + /* don't print the nick change message if only the case was changed */ + if (g_strcasecmp(query->name, oldnick) != 0) { + printformat_dest(&dest, TXT_NICK_CHANGED, oldnick, + query->name, query->name); + } signal_emit("window item changed", 2, window_item_window((WI_ITEM_REC *) query), query); |