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

This commit is contained in:
Jari Matilainen 2015-10-04 17:29:47 +02:00
commit 3c9c11af7a

View file

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