From cf7d6915f5cfff985cee06643644e1f176a0d28d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 2 Jul 2000 12:07:49 +0000 Subject: Don't check highlighting if the message was meant for you (your nick at the start of the line). Also, highlighted texts didn't really set the window's color right in activity list.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@413 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/window-activity.c | 2 +- src/fe-common/irc/fe-events.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fe-common/core/window-activity.c b/src/fe-common/core/window-activity.c index 1f18b12f..7a769aa6 100644 --- a/src/fe-common/core/window-activity.c +++ b/src/fe-common/core/window-activity.c @@ -109,7 +109,7 @@ static void sig_hilight_window_item(WI_ITEM_REC *item) } oldlevel = window->new_data; - if (level == MSGLEVEL_HILIGHT) + if (level == NEWDATA_HILIGHT) window->last_color = color; if (window->new_data < level || level == 0) { window->new_data = level; diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c index d37ef8b5..ee52c917 100644 --- a/src/fe-common/irc/fe-events.c +++ b/src/fe-common/irc/fe-events.c @@ -65,7 +65,7 @@ static void print_channel_msg(IRC_SERVER_REC *server, const char *msg, chanrec = channel_find(server, target); for_me = irc_nick_match(server->nick, msg); - color = irc_hilight_find_nick(target, nick, addr, MSGLEVEL_PUBLIC, msg); + color = for_me ? NULL : irc_hilight_find_nick(target, nick, addr, MSGLEVEL_PUBLIC, msg); nickrec = chanrec == NULL ? NULL : nicklist_find(chanrec, nick); nickmode = (!settings_get_bool("show_nickmode") || nickrec == NULL) ? "" : -- cgit v1.2.3