summaryrefslogtreecommitdiff
path: root/src/fe-common/core/hilight-text.c
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2015-12-28 00:07:42 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2015-12-28 01:08:35 +0100
commit7cc85b9427887c4f77b8a5706b148371e713828b (patch)
tree8057d866feea9cbdb14319f7f3c485aa932ddbb9 /src/fe-common/core/hilight-text.c
parent787956af3aac001755ec87d52cbb28f7c91800e1 (diff)
downloadirssi-7cc85b9427887c4f77b8a5706b148371e713828b.zip
keep track of address in text_dest for hilight purposes
Diffstat (limited to 'src/fe-common/core/hilight-text.c')
-rw-r--r--src/fe-common/core/hilight-text.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c
index 2c0075ec..b746f636 100644
--- a/src/fe-common/core/hilight-text.c
+++ b/src/fe-common/core/hilight-text.c
@@ -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;