summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_regex_tre.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra/m_regex_tre.cpp')
-rw-r--r--src/modules/extra/m_regex_tre.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/modules/extra/m_regex_tre.cpp b/src/modules/extra/m_regex_tre.cpp
index 4b9eab472..b5bd7d012 100644
--- a/src/modules/extra/m_regex_tre.cpp
+++ b/src/modules/extra/m_regex_tre.cpp
@@ -30,7 +30,7 @@
class TRERegexException : public ModuleException
{
-public:
+ public:
TRERegexException(const std::string& rx, const std::string& error)
: ModuleException("Error in regex " + rx + ": " + error)
{
@@ -39,7 +39,6 @@ public:
class TRERegex : public Regex
{
-private:
regex_t regbuf;
public:
@@ -80,7 +79,8 @@ public:
}
};
-class TREFactory : public RegexFactory {
+class TREFactory : public RegexFactory
+{
public:
TREFactory(Module* m) : RegexFactory(m, "regex/tre") {}
Regex* Create(const std::string& expr)
@@ -92,8 +92,10 @@ class TREFactory : public RegexFactory {
class ModuleRegexTRE : public Module
{
TREFactory trf;
-public:
- ModuleRegexTRE() : trf(this) {
+
+ public:
+ ModuleRegexTRE() : trf(this)
+ {
ServerInstance->Modules->AddService(trf);
}
@@ -101,10 +103,6 @@ public:
{
return Version("Regex Provider Module for TRE Regular Expressions", VF_VENDOR);
}
-
- ~ModuleRegexTRE()
- {
- }
};
MODULE_INIT(ModuleRegexTRE)