]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configreader.cpp
Allow options:casemapping to remain defined when using m_nationalchars.
[user/henk/code/inspircd.git] / src / configreader.cpp
index 782a80080aad8e9e83cc4e741ce557c30733ad01..2a1da8fd8fbb23dac1c699c39a8d3968f5a64692 100644 (file)
@@ -368,7 +368,8 @@ void ServerConfig::Fill()
                        throw CoreException("You must restart to change the server id");
 
                std::string casemapping = options->getString("casemapping");
-               if (!casemapping.empty() && casemapping != CaseMapping)
+               // Ignore this value if CaseMapping is set to something the core doesn't provide (i.e., m_nationalchars).
+               if (!casemapping.empty() && casemapping != CaseMapping && (CaseMapping == "ascii" || CaseMapping == "rfc1459"))
                        throw CoreException("You must restart to change the server casemapping");
 
        }