]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_regex_posix.cpp
Update wiki links to use HTTPS and point to the correct pages.
[user/henk/code/inspircd.git] / src / modules / extra / m_regex_posix.cpp
index 4cb1a03d57d5f8ae6f52a8cf92e11637f15f994d..b3afd60c80b8c002ebdaa21eae3069690a775ab2 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)
        {
        }
 };
@@ -96,7 +96,7 @@ public:
        ModuleRegexPOSIX() : ref(this) {
                ServerInstance->Modules->AddService(ref);
                Implementation eventlist[] = { I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
                OnRehash(NULL);
        }
 
@@ -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");
        }
 };