diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-10 22:41:32 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-10 22:41:32 +0100 |
commit | f74fd05da77241e8f40532bef0fec9bbfbea9fc7 (patch) | |
tree | cbe53bf774fbf0b2531f49619c717e2816431373 /src/gui/gui-chat.c | |
parent | cecc1f9ea7aac5ef3486a9792e3cb3a899b4c3b5 (diff) | |
download | weechat-f74fd05da77241e8f40532bef0fec9bbfbea9fc7.zip |
Disable highlight for IRC messages from local nick
Diffstat (limited to 'src/gui/gui-chat.c')
-rw-r--r-- | src/gui/gui-chat.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index 2eea85ad7..cc71c7ebb 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -626,14 +626,21 @@ int gui_chat_line_has_highlight (struct t_gui_buffer *buffer, struct t_gui_line *line) { - int rc; + int rc, i; char *msg_no_color; /* highlights are disabled on this buffer? (special value "-" means that buffer does not want any highlight) */ if (buffer->highlight_words && (strcmp (buffer->highlight_words, "-") == 0)) return 0; - + + /* check if highlight is disabled for line */ + for (i = 0; i < line->tags_count; i++) + { + if (strcmp (line->tags_array[i], GUI_CHAT_TAG_NO_HIGHLIGHT) == 0) + return 0; + } + /* check that line matches highlight tags, if any (if no tag is specified, then any tag is allowed) */ if (buffer->highlight_tags_count > 0) |