X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_regex_glob.cpp;h=97d36c4b9083fb5841826df38f9dd2df56380149;hb=8be88f3e732e7a40f2e501c5e5b78c7f1b999f2d;hp=7977c77f105c2555b44cf03b1885868efe76b043;hpb=b3cbd1a15354f593b1c891b870bf7f2f276f74d7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_regex_glob.cpp b/src/modules/m_regex_glob.cpp index 7977c77f1..97d36c4b9 100644 --- a/src/modules/m_regex_glob.cpp +++ b/src/modules/m_regex_glob.cpp @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -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)