diff options
Diffstat (limited to 'src/core/levels.c')
-rw-r--r-- | src/core/levels.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/levels.c b/src/core/levels.c index 3cc00e95..b47079ba 100644 --- a/src/core/levels.c +++ b/src/core/levels.c @@ -46,6 +46,7 @@ static const char *levels[] = { "HILIGHTS", "NOHILIGHT", + "NO_ACT", NULL }; @@ -59,6 +60,9 @@ int level_get(const char *level) if (g_ascii_strcasecmp(level, "NEVER") == 0) return MSGLEVEL_NEVER; + if (g_ascii_strcasecmp(level, "NO_ACT") == 0) + return MSGLEVEL_NO_ACT; + len = strlen(level); if (len == 0) return 0; @@ -139,6 +143,9 @@ char *bits2level(int bits) if (bits & MSGLEVEL_NEVER) g_string_append(str, "NEVER "); + if (bits & MSGLEVEL_NO_ACT) + g_string_append(str, "NO_ACT "); + for (n = 0; levels[n] != NULL; n++) { if (bits & (1L << n)) g_string_append_printf(str, "%s ", levels[n]); |