]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_regex_glob.cpp
Fix silly oversight discovered by tra26 (thanks!) where the core tries to handle...
[user/henk/code/inspircd.git] / src / modules / m_regex_glob.cpp
index 7977c77f105c2555b44cf03b1885868efe76b043..d72d49896638a20026f358eca8ccc7b7562fece3 100644 (file)
@@ -30,7 +30,7 @@ public:
 
        virtual bool Matches(const std::string& text)
        {
-               return InspIRCd::Match(this->regex_string, text);
+               return InspIRCd::Match(text, this->regex_string);
        }
 };
 
@@ -44,6 +44,11 @@ public:
                Me->Modules->Attach(eventlist, this, 1);
        }
 
+       virtual Version GetVersion()
+       {
+               return Version("$Id$", VF_COMMON | VF_VENDOR | VF_SERVICEPROVIDER, API_VERSION);
+       }
+
        virtual ~ModuleRegexGlob()
        {
                ServerInstance->Modules->UnpublishInterface("RegularExpression", this);
@@ -65,3 +70,5 @@ public:
                return NULL;
        }
 };
+
+MODULE_INIT(ModuleRegexGlob)