mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:47:35 +00:00
IRCClient: Use target nick than the sender for received private chats
Sending a private message from other device by using a bouncer caused the message to appear in the wrong channel, as if you had sent it to yourself.
This commit is contained in:
parent
295192bf15
commit
f572ddd280
1 changed files with 2 additions and 2 deletions
|
@ -516,9 +516,9 @@ void IRCClient::handle_privmsg_or_notice(const Message& msg, PrivmsgOrNotice typ
|
|||
// Otherwise, put them in the server window. This seems to match other clients.
|
||||
IRCQuery* query = nullptr;
|
||||
if (is_ctcp || type == PrivmsgOrNotice::Notice) {
|
||||
query = query_with_name(sender_nick);
|
||||
query = query_with_name(target);
|
||||
} else {
|
||||
query = &ensure_query(sender_nick);
|
||||
query = &ensure_query(target);
|
||||
}
|
||||
if (query) {
|
||||
if (insert_as_raw_message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue