summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-12-08 01:58:59 +0000
committerPeter Powell <petpow@saberuk.com>2017-02-04 18:23:22 +0000
commit4b37c612257fa94a790d4698a2660112473599ae (patch)
tree8376835ffb58072ed37de3ab986dce16d0d2cdc1 /include
parent3fd1ba753d0e4cb56ecb22ddfdabd6795e17ff25 (diff)
Make the config system case insensitive.
Diffstat (limited to 'include')
-rw-r--r--include/configparser.h2
-rw-r--r--include/typedefs.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/configparser.h b/include/configparser.h
index 02619e759..c9790c59f 100644
--- a/include/configparser.h
+++ b/include/configparser.h
@@ -41,7 +41,7 @@ enum ParseFlags
struct ParseStack
{
std::vector<std::string> reading;
- insp::flat_map<std::string, std::string> vars;
+ insp::flat_map<std::string, std::string, irc::insensitive_swo> vars;
ConfigDataHash& output;
ConfigFileCache& FilesOutput;
std::stringstream& errstr;
diff --git a/include/typedefs.h b/include/typedefs.h
index d7bfadc60..873382999 100644
--- a/include/typedefs.h
+++ b/include/typedefs.h
@@ -68,11 +68,11 @@ typedef std::vector<std::string> file_cache;
/** A mapping of configuration keys to their assigned values.
*/
-typedef insp::flat_map<std::string, std::string> ConfigItems;
+typedef insp::flat_map<std::string, std::string, irc::insensitive_swo> ConfigItems;
/** The entire configuration
*/
-typedef std::multimap<std::string, reference<ConfigTag> > ConfigDataHash;
+typedef std::multimap<std::string, reference<ConfigTag>, irc::insensitive_swo> ConfigDataHash;
/** Iterator of ConfigDataHash */
typedef ConfigDataHash::const_iterator ConfigIter;