virtual bool Matches(const std::string& text)
{
- return InspIRCd::Match(this->regex_string, text);
+ return InspIRCd::Match(text, this->regex_string);
}
};
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);
return NULL;
}
};
+
+MODULE_INIT(ModuleRegexGlob)