mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04: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;
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user