]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Make it possible to retrieve the original string from a given regex object, so it...
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 5 Sep 2008 18:58:55 +0000 (18:58 +0000)
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 5 Sep 2008 18:58:55 +0000 (18:58 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10397 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/extra/m_regex.h

index cffb94cbd2ded43d8ece04fb07e9abf2f10ab50e..441d1c0dfbdce1a78ca59a299c2ba220c655f150 100644 (file)
@@ -34,6 +34,11 @@ public:
        }
 
        virtual bool Matches(const std::string& text) = 0;
+
+       const std::string& GetRegexString() const
+       {
+               return regex_string;
+       }
 };
 
 class RegexFactoryRequest : public Request