From 6af303bd3ab37702ad4a6d50b74e95d2a2808e85 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 6 Jan 2013 20:33:31 +0400 Subject: Add /maps and /getmap commands to webui. Identify maps by id. Initialize secure random numbers using openssl. Add description to maps. --- src/cfg_utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cfg_utils.c') 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) { -- cgit v1.2.3