mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Merge pull request #351 from vague666/hilight_default_behaviour
Fix /hilight list output behaviour depending on enabled flags
This commit is contained in:
commit
ac04fa7413
@ -484,10 +484,14 @@ static void hilight_print(int index, HILIGHT_REC *rec)
|
||||
GString *options;
|
||||
|
||||
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) { /* default case, no option */ }
|
||||
else if (rec->nick)
|
||||
g_string_append(options, "-nick ");
|
||||
else if (rec->word)
|
||||
g_string_append(options, "-word ");
|
||||
else
|
||||
g_string_append(options, "-line ");
|
||||
|
||||
if (rec->nickmask) g_string_append(options, "-mask ");
|
||||
if (rec->fullword) g_string_append(options, "-full ");
|
||||
|
Loading…
Reference in New Issue
Block a user