mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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
This commit is contained in:
parent
86dcbd11e4
commit
fc20431dbb
@ -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,
|
format_create_dest_tag(&dest, query->server, query->server_tag,
|
||||||
query->name, MSGLEVEL_CLIENTNOTICE, NULL);
|
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,
|
signal_emit("window item changed", 2,
|
||||||
window_item_window((WI_ITEM_REC *) query), query);
|
window_item_window((WI_ITEM_REC *) query), query);
|
||||||
|
Loading…
Reference in New Issue
Block a user