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:
parent
e732b601f7
commit
9e9858638d
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user