X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fextra%2Fm_regex_stdlib.cpp;h=5d2294c871ac2311cb11c10893b0cbdf866ea79d;hb=24623a5fe6ff986ad342e2b00d3576b4899a6033;hp=64d479cbc1795e82f6d4f10d31e8e2fa2390e4c4;hpb=26e7bb0b9a17a595d9935a1cae41b44504ad213e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/extra/m_regex_stdlib.cpp b/src/modules/extra/m_regex_stdlib.cpp index 64d479cbc..5d2294c87 100644 --- a/src/modules/extra/m_regex_stdlib.cpp +++ b/src/modules/extra/m_regex_stdlib.cpp @@ -17,15 +17,11 @@ */ #include "inspircd.h" -#include "m_regex.h" +#include "modules/regex.h" #include -/* $ModDesc: Regex Provider Module for std::regex Regular Expressions */ -/* $ModConfig: - * Specify the Regular Expression engine to use here. Valid settings are - * bre, ere, awk, grep, egrep, ecmascript (default if not specified)*/ /* $CompileFlags: -std=c++11 */ -/* $ModDep: m_regex.h */ +/* $ModDep: modules/regex.h */ class StdRegexException : public ModuleException { @@ -52,7 +48,7 @@ class StdRegex : public Regex } } - virtual bool Matches(const std::string& text) + bool Matches(const std::string& text) { return std::regex_search(text, regexcl); } @@ -81,12 +77,12 @@ public: OnRehash(NULL); } - Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Regex Provider Module for std::regex", VF_VENDOR); } - void OnRehash(User* u) + void OnRehash(User* u) CXX11_OVERRIDE { ConfigTag* Conf = ServerInstance->Config->ConfValue("stdregex"); std::string regextype = Conf->getString("type", "ecmascript");