diff options
author | Jari Matilainen <jari.matilainen@gmail.com> | 2015-11-09 23:06:56 +0100 |
---|---|---|
committer | Jari Matilainen <jari.matilainen@gmail.com> | 2015-11-09 23:06:56 +0100 |
commit | b333d103641b48b77ab76c6d31b1f3788192268f (patch) | |
tree | 25a5c646d980c4123301619021b22021ab9ecbc1 /src | |
parent | 7ab38f29edb59941281723d7031d41d93fae06bd (diff) | |
download | irssi-b333d103641b48b77ab76c6d31b1f3788192268f.zip |
/hilight list print output with enabled flags, except when -word and -nick are used
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/hilight-text.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index 87c5d467..9822de1e 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -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 "); |