1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-15 04:28:09 -04:00

Don't match nicks in -nick hilights.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2191 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-12-04 14:08:34 +00:00 committed by cras
parent aeae7935ec
commit 575a5a3b8b

View File

@ -282,6 +282,7 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text,
HILIGHT_REC *hilight;
char *color, *newstr;
int old_level, hilight_start, hilight_end, hilight_len;
int nick_match;
if (dest->level & MSGLEVEL_NOHILIGHT)
return;
@ -294,11 +295,15 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text,
if (hilight == NULL)
return;
/* update the level / hilight info */
old_level = dest->level;
hilight_update_text_dest(dest, hilight);
nick_match = hilight->nick && (dest->level & (MSGLEVEL_PUBLIC|MSGLEVEL_ACTIONS)) == MSGLEVEL_PUBLIC;
if (hilight->nick && (dest->level & (MSGLEVEL_PUBLIC|MSGLEVEL_ACTIONS)) == MSGLEVEL_PUBLIC)
if (!nick_match || (dest->level & MSGLEVEL_HILIGHT)) {
/* update the level / hilight info */
old_level = dest->level;
hilight_update_text_dest(dest, hilight);
}
if (nick_match)
return; /* fe-messages.c should have taken care of this */
if (old_level & MSGLEVEL_HILIGHT) {