Make /hilight list be specific with regards to -nick/-word/-line, v2

This commit is contained in:
Jari Matilainen 2015-10-06 14:00:14 +02:00
commit 4874dd61af

View file

@ -485,8 +485,8 @@ static void hilight_print(int index, HILIGHT_REC *rec)
options = g_string_new(NULL); options = g_string_new(NULL);
if (rec->nick || rec->word) { if (rec->nick || rec->word) {
if (rec->nick) g_string_append(options, "-nick "); if (rec->nick && !rec->word) g_string_append(options, "-nick ");
if (rec->word) g_string_append(options, "-word "); if (rec->word && !rec->nick) g_string_append(options, "-word ");
} }
else else
g_string_append(options, "-line "); g_string_append(options, "-line ");