changeset 171:9a1353862520

Merged.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 19 Feb 2015 15:59:42 +0200
parents 8e69e07e5aac (current diff) a06a87b771ce (diff)
children eb2c073d93b3
files
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Thu Feb 19 15:57:38 2015 +0200
+++ b/th_string.c	Thu Feb 19 15:59:42 2015 +0200
@@ -577,6 +577,7 @@
 BOOL th_get_boolean(const char *str, BOOL *value)
 {
     if (!th_strcasecmp(str, "yes") ||
+        !th_strcasecmp(str, "on") ||
         !th_strcasecmp(str, "true") ||
         !th_strcasecmp(str, "1"))
     {
@@ -585,6 +586,7 @@
     }
     else
     if (!th_strcasecmp(str, "no") ||
+        !th_strcasecmp(str, "off") ||
         !th_strcasecmp(str, "false") ||
         !th_strcasecmp(str, "0"))
     {