1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

core: use nick offline highlight color for prefix of action message when the nick is offline with a highlight

This commit is contained in:
Sébastien Helleu
2024-04-11 22:50:39 +02:00
parent 90998bd296
commit ae892d2893
2 changed files with 11 additions and 10 deletions
+10 -10
View File
@@ -1071,17 +1071,17 @@ gui_line_has_offline_nick (struct t_gui_line *line)
{
const char *nick;
if (line && gui_line_search_tag_starting_with (line, "prefix_nick"))
if (!line)
return 0;
nick = gui_line_get_nick_tag (line);
if (nick
&& (line->data->buffer->nicklist_root
&& (line->data->buffer->nicklist_root->nicks
|| line->data->buffer->nicklist_root->children))
&& !gui_nicklist_search_nick (line->data->buffer, NULL, nick))
{
nick = gui_line_get_nick_tag (line);
if (nick
&& (line->data->buffer->nicklist_root
&& (line->data->buffer->nicklist_root->nicks
|| line->data->buffer->nicklist_root->children))
&& !gui_nicklist_search_nick (line->data->buffer, NULL, nick))
{
return 1;
}
return 1;
}
return 0;