]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_regex_posix.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / extra / m_regex_posix.cpp
index 4cb1a03d57d5f8ae6f52a8cf92e11637f15f994d..e3e436bd657052ba89594270264502da6f6c7e54 100644 (file)
@@ -30,7 +30,7 @@ class POSIXRegexException : public ModuleException
 {
 public:
        POSIXRegexException(const std::string& rx, const std::string& error)
-               : ModuleException(std::string("Error in regex ") + rx + ": " + error)
+               : ModuleException("Error in regex " + rx + ": " + error)
        {
        }
 };
@@ -107,8 +107,7 @@ public:
 
        void OnRehash(User* u)
        {
-               ConfigReader Conf;
-               ref.extended = Conf.ReadFlag("posix", "extended", 0);
+               ref.extended = ServerInstance->Config->ConfValue("posix")->getBool("extended");
        }
 };