diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index b12705f7..8e261cca 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -485,8 +485,8 @@ static void hilight_print(int index, HILIGHT_REC *rec) options = g_string_new(NULL); if (rec->nick || rec->word) { - if (rec->nick) g_string_append(options, "-nick "); - if (rec->word) g_string_append(options, "-word "); + if (rec->nick && !rec->word) g_string_append(options, "-nick "); + if (rec->word && !rec->nick) g_string_append(options, "-word "); } else g_string_append(options, "-line ");