summaryrefslogtreecommitdiff
path: root/modules/regex_stdlib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/regex_stdlib.cpp')
-rw-r--r--modules/regex_stdlib.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/regex_stdlib.cpp b/modules/regex_stdlib.cpp
index 0e932c02a..ff524914a 100644
--- a/modules/regex_stdlib.cpp
+++ b/modules/regex_stdlib.cpp
@@ -67,11 +67,11 @@ public:
this->SetPermanent(true);
}
- void OnReload(Configuration::Conf *conf) override
+ void OnReload(Configuration::Conf &conf) override
{
- Configuration::Block *block = conf->GetModule(this);
+ Configuration::Block &block = conf.GetModule(this);
- const Anope::string syntax = block->Get<const Anope::string>("syntax", "ecmascript");
+ const Anope::string syntax = block.Get<const Anope::string>("syntax", "ecmascript");
if (syntax == "awk")
stdlib_regex_provider.type = std::regex::awk;
else if (syntax == "basic")