aboutsummaryrefslogtreecommitdiff
path: root/src/configparser.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-03-09 04:46:21 +0000
committerGravatar Sadie Powell2020-03-09 04:46:21 +0000
commit853768acbe2fd6e5f506008de2be2b10698c1b4f (patch)
treea591380000514ed4d61e2b02a51b57c0072a425f /src/configparser.cpp
parentRevert "Remove the now obsolete regex_posix module". (diff)
Remove support for 0/1 in getBool.
These were compat for an ancient version from before getBool existed.
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index 2f84b971a..2fcd59d4a 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -639,10 +639,10 @@ bool ConfigTag::getBool(const std::string &key, bool def)
if(!readString(key, result))
return def;
- if (stdalgo::string::equalsci(result, "yes") || stdalgo::string::equalsci(result, "true") || stdalgo::string::equalsci(result, "on") || result == "1")
+ if (stdalgo::string::equalsci(result, "yes") || stdalgo::string::equalsci(result, "true") || stdalgo::string::equalsci(result, "on"))
return true;
- if (stdalgo::string::equalsci(result, "no") || stdalgo::string::equalsci(result, "false") || stdalgo::string::equalsci(result, "off") || result == "0")
+ if (stdalgo::string::equalsci(result, "no") || stdalgo::string::equalsci(result, "false") || stdalgo::string::equalsci(result, "off"))
return false;
ServerInstance->Logs.Log("CONFIG", LOG_DEFAULT, "Value of <" + tag + ":" + key + "> at " + getTagLocation() +