X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fextra%2Fm_regex_posix.cpp;h=b3afd60c80b8c002ebdaa21eae3069690a775ab2;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=4cb1a03d57d5f8ae6f52a8cf92e11637f15f994d;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/extra/m_regex_posix.cpp b/src/modules/extra/m_regex_posix.cpp index 4cb1a03d5..b3afd60c8 100644 --- a/src/modules/extra/m_regex_posix.cpp +++ b/src/modules/extra/m_regex_posix.cpp @@ -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"); } };