keep track of address in text_dest for hilight purposes

This commit is contained in:
ailin-nemui 2015-12-28 00:07:42 +01:00
commit 7cc85b9427
4 changed files with 10 additions and 14 deletions

View file

@ -325,9 +325,10 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text,
if (dest->level & MSGLEVEL_NOHILIGHT)
return;
hilight_start = dest->match_beg;
hilight_end = dest->match_end;
hilight = dest->hilight;
hilight_start = hilight_end = 0;
hilight = hilight_match(dest->server, dest->target, dest->nick,
dest->address, dest->level, stripped,
&hilight_start, &hilight_end);
if (hilight == NULL)
return;