]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_regex_pcre.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / modules / extra / m_regex_pcre.cpp
index 5254f04a678d731ebdcae113b87069371d3e5ae7..4389ad6858db42da6c6fae90fb25bedeabc5f181 100644 (file)
@@ -39,14 +39,14 @@ private:
        pcre* regex;
 
 public:
-       PCRERegex(const std::string& rx, InspIRCd* Me) : Regex(rx, Me)
+       PCRERegex(const std::string& rx, ) : Regex(rx, Me)
        {
                const char* error;
                int erroffset;
                regex = pcre_compile(rx.c_str(), 0, &error, &erroffset, NULL);
                if (!regex)
                {
-                       Me->Logs->Log("REGEX", DEBUG, "pcre_compile failed: /%s/ [%d] %s", rx.c_str(), erroffset, error);
+                       ServerInstance->Logs->Log("REGEX", DEBUG, "pcre_compile failed: /%s/ [%d] %s", rx.c_str(), erroffset, error);
                        throw PCREException(rx, error, erroffset);
                }
        }
@@ -70,11 +70,10 @@ public:
 class ModuleRegexPCRE : public Module
 {
 public:
-       ModuleRegexPCRE(InspIRCd* Me) : Module(Me)
-       {
-               Me->Modules->PublishInterface("RegularExpression", this);
+       ModuleRegexPCRE()       {
+               ServerInstance->Modules->PublishInterface("RegularExpression", this);
                Implementation eventlist[] = { I_OnRequest };
-               Me->Modules->Attach(eventlist, this, 1);
+               ServerInstance->Modules->Attach(eventlist, this, 1);
        }
 
        virtual Version GetVersion()