]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_regex_posix.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modules / extra / m_regex_posix.cpp
index 34a7e9babdccee00a537131e3d848ea07da95770..5fe4db29fb35d8835b56030802ae06a2419d534b 100644 (file)
@@ -34,7 +34,7 @@ private:
        regex_t regbuf;
 
 public:
-       POSIXRegex(const std::string& rx, InspIRCd* Me, bool extended) : Regex(rx, Me)
+       POSIXRegex(const std::string& rx, bool extended) : Regex(rx, Me)
        {
                int flags = (extended ? REG_EXTENDED : 0) | REG_NOSUB;
                int errcode;
@@ -76,11 +76,10 @@ class ModuleRegexPOSIX : public Module
 private:
        bool extended;
 public:
-       ModuleRegexPOSIX(InspIRCd* Me) : Module(Me)
-       {
-               Me->Modules->PublishInterface("RegularExpression", this);
+       ModuleRegexPOSIX()      {
+               ServerInstance->Modules->PublishInterface("RegularExpression", this);
                Implementation eventlist[] = { I_OnRequest, I_OnRehash };
-               Me->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, 2);
                OnRehash(NULL);
        }
 
@@ -96,7 +95,7 @@ public:
 
        virtual void OnRehash(User* u)
        {
-               ConfigReader Conf(ServerInstance);
+               ConfigReader Conf;
                extended = Conf.ReadFlag("posix", "extended", 0);
        }