1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Fix logic in how own actions are printed for other protocols

When working with channels belonging to other, non-IRC protocols,
calling irc_channel_find() returns NULL, which makes irssi
use IRCTXT_OWN_ACTION_TARGET format, instead of the correct
IRCTXT_OWN_ACTION.

Using generic channel_find() instead fixes the issue.
This commit is contained in:
Andrej Kacian 2023-05-04 23:04:28 +02:00
parent e732b601f7
commit 9e9858638d

View File

@ -173,7 +173,7 @@ static void sig_message_own_action(IRC_SERVER_REC *server, const char *msg,
oldtarget = target; oldtarget = target;
target = fe_channel_skip_prefix(IRC_SERVER(server), target); target = fe_channel_skip_prefix(IRC_SERVER(server), target);
if (server_ischannel(SERVER(server), target)) if (server_ischannel(SERVER(server), target))
item = irc_channel_find(server, target); item = channel_find(SERVER(server), target);
else else
item = irc_query_find(server, target); item = irc_query_find(server, target);