# HG changeset patch # User Matti Hamalainen # Date 1424288668 -7200 # Node ID a06a87b771ce30e47f9ab9befb8db603da0eb9a8 # Parent a2cd862315c57290d786663ecd1d1dff655116d9 Add on/off to valid boolean values. diff -r a2cd862315c5 -r a06a87b771ce th_string.c --- a/th_string.c Wed Feb 18 21:13:52 2015 +0200 +++ b/th_string.c Wed Feb 18 21:44:28 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")) {