aboutsummaryrefslogtreecommitdiff
path: root/src/configparser.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-04 12:26:25 +0000
committerGravatar Sadie Powell2020-02-04 12:26:25 +0000
commit6da4987073aad99061360bc54022e342e3a0f555 (patch)
treed4e8cca5270013eed9915fe740f346cd6890a7c4 /src/configparser.cpp
parentVarious CI improvements. (diff)
parentInclude the ABI version with the incompatible module error message. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index 30c125db9..fc4be52ff 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -2,7 +2,7 @@
* InspIRCd -- Internet Relay Chat Daemon
*
* Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com>
- * Copyright (C) 2013-2014, 2016-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2013-2014, 2016-2020 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2013 ChrisTX <xpipe@hotmail.de>
* Copyright (C) 2012-2014 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012 Robby <robby@chatbelgie.be>
@@ -641,9 +641,10 @@ bool ConfigTag::getBool(const std::string &key, bool def)
if(!readString(key, result))
return def;
- if (result == "yes" || result == "true" || result == "1" || result == "on")
+ if (stdalgo::string::equalsci(result, "yes") || stdalgo::string::equalsci(result, "true") || stdalgo::string::equalsci(result, "on") || result == "1")
return true;
- if (result == "no" || result == "false" || result == "0" || result == "off")
+
+ if (stdalgo::string::equalsci(result, "no") || stdalgo::string::equalsci(result, "false") || stdalgo::string::equalsci(result, "off") || result == "0")
return false;
ServerInstance->Logs.Log("CONFIG", LOG_DEFAULT, "Value of <" + tag + ":" + key + "> at " + getTagLocation() +