diff options
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index 7b1910324..a0191b103 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -494,11 +494,17 @@ parse_flag (const gchar *str) if (g_ascii_strncasecmp (str, "no", len) == 0) { return 0; } + else if (g_ascii_strncasecmp (str, "on", len) == 0) { + return 1; + } break; case 3: if (g_ascii_strncasecmp (str, "yes", len) == 0) { return 1; } + else if (g_ascii_strncasecmp (str, "off", len) == 0) { + return 0; + } break; case 4: if (g_ascii_strncasecmp (str, "true", len) == 0) { |