From 9e9858638d8ef9d5a642c3d4c0ce5107f9754472 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Thu, 4 May 2023 23:04:28 +0200 Subject: [PATCH] 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. --- src/fe-common/irc/fe-irc-messages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/irc/fe-irc-messages.c b/src/fe-common/irc/fe-irc-messages.c index 201e7ffa..89346648 100644 --- a/src/fe-common/irc/fe-irc-messages.c +++ b/src/fe-common/irc/fe-irc-messages.c @@ -173,7 +173,7 @@ static void sig_message_own_action(IRC_SERVER_REC *server, const char *msg, oldtarget = target; target = fe_channel_skip_prefix(IRC_SERVER(server), target); if (server_ischannel(SERVER(server), target)) - item = irc_channel_find(server, target); + item = channel_find(SERVER(server), target); else item = irc_query_find(server, target);