summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rwxr-xr-xconfig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.c b/config.c
index 6a4d10696..a0e290305 100755
--- a/config.c
+++ b/config.c
@@ -109,7 +109,8 @@ int ast_true(char *s)
!strcasecmp(s, "true") ||
!strcasecmp(s, "y") ||
!strcasecmp(s, "t") ||
- !strcasecmp(s, "1"))
+ !strcasecmp(s, "1") ||
+ !strcasecmp(s, "on"))
return -1;
return 0;
}
@@ -123,7 +124,8 @@ int ast_false(char *s)
!strcasecmp(s, "false") ||
!strcasecmp(s, "n") ||
!strcasecmp(s, "f") ||
- !strcasecmp(s, "0"))
+ !strcasecmp(s, "0") ||
+ !strcasecmp(s, "off"))
return -1;
return 0;
}