mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-09-03 21:43:10 +00:00
Fix CTCP ACTION not rerouting self-sent /me to correct PM window
Mirrors the PRIVMSG fix: replayed /me messages sent by our own nick via WeeChat relay backlog were always passed with fromme=FALSE, so they never got rerouted to the actual PM query window.
This commit is contained in:
@@ -126,7 +126,21 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
|
||||
if (ctcp_check (sess, nick, word, word_eol, word[4] + ctcp_offset))
|
||||
goto generic;
|
||||
|
||||
inbound_action (sess, to, nick, ip, msg + 7, FALSE, tags_data->identified, tags_data);
|
||||
{
|
||||
gboolean fromme = !serv->p_cmp (nick, serv->nick);
|
||||
|
||||
if (fromme && !is_channel (serv, to))
|
||||
{
|
||||
session *target = find_dialog (serv, to);
|
||||
|
||||
if (target)
|
||||
sess = target;
|
||||
else if (serv->front_session)
|
||||
sess = serv->front_session;
|
||||
}
|
||||
|
||||
inbound_action (sess, to, nick, ip, msg + 7, fromme, tags_data->identified, tags_data);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user