summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-11 22:50:39 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-11 22:50:39 +0200
commitae892d2893aa78e5c9674aed0134c9ef64a518ef (patch)
tree83e5d02e5836bd7d7d132bf91c5101db55d49f52 /src
parent90998bd296aa854e73567aee6fc66d8ca35458b3 (diff)
downloadweechat-ae892d2893aa78e5c9674aed0134c9ef64a518ef.zip
core: use nick offline highlight color for prefix of action message when the nick is offline with a highlight
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-line.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/gui-line.c b/src/gui/gui-line.c
index 675b6d23d..5ec6b0da8 100644
--- a/src/gui/gui-line.c
+++ b/src/gui/gui-line.c
@@ -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"))
- {
- 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;
- }
+ 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))
+ {
+ return 1;
}
return 0;