summaryrefslogtreecommitdiff
path: root/src/fe-common/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-19 21:10:39 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-19 21:10:39 +0000
commitdc11f23afd1598043eeec9cf797eab81ed00cd44 (patch)
tree136b5be900fa98f42c276de6561ebb982f9b3711 /src/fe-common/core
parente98a83b53833f3448d2a8aeb67585fbafb9ec900 (diff)
downloadirssi-dc11f23afd1598043eeec9cf797eab81ed00cd44.zip
/HILIGHT -actcolor didn't work with -nick (which was default)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2100 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core')
-rw-r--r--src/fe-common/core/hilight-text.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c
index 7050e9f1..b280c1f5 100644
--- a/src/fe-common/core/hilight-text.c
+++ b/src/fe-common/core/hilight-text.c
@@ -294,18 +294,18 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text,
if (hilight == NULL)
return;
- if (hilight->nick && (dest->level & (MSGLEVEL_PUBLIC|MSGLEVEL_ACTIONS)) == MSGLEVEL_PUBLIC)
- return; /* fe-messages.c should have taken care of this */
-
/* update the level / hilight info */
old_level = dest->level;
hilight_update_text_dest(dest, hilight);
+ if (hilight->nick && (dest->level & (MSGLEVEL_PUBLIC|MSGLEVEL_ACTIONS)) == MSGLEVEL_PUBLIC)
+ return; /* fe-messages.c should have taken care of this */
+
if (old_level & MSGLEVEL_HILIGHT) {
/* nick is highlighted, just set priority */
return;
}
-
+
color = hilight_get_color(hilight);
hilight_len = hilight_end-hilight_start;