mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Process the nick changes in queries before the PRIVMSG is handled.
Otherwise we end up with the message in the status window since the frontend knows jack shit about the casemapping option when it tries to find the associated window for the query.
This commit is contained in:
parent
618c8bd10e
commit
0d6add02cf
2 changed files with 7 additions and 16 deletions
|
|
@ -78,6 +78,13 @@ static void event_privmsg(SERVER_REC *server, const char *data,
|
|||
if (!server_has_nick(server, query->name))
|
||||
query_change_nick(query, nick);
|
||||
}
|
||||
} else {
|
||||
/* process the changes to the query structure now, before the
|
||||
* privmsg is dispatched. */
|
||||
if (g_strcmp0(query->name, nick) != 0)
|
||||
query_change_nick(query, nick);
|
||||
if (address != NULL && g_strcmp0(query->address, address) != 0)
|
||||
query_change_address(query, address);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue