summaryrefslogtreecommitdiff
path: root/modules/ns_maxemail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ns_maxemail.cpp')
-rw-r--r--modules/ns_maxemail.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/ns_maxemail.cpp b/modules/ns_maxemail.cpp
index bf90374d0..530ca5fe4 100644
--- a/modules/ns_maxemail.cpp
+++ b/modules/ns_maxemail.cpp
@@ -56,15 +56,11 @@ class NSMaxEmail : public Module
Implementation i[] = { I_OnReload, I_OnPreCommand };
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
-
- OnReload();
}
- void OnReload() anope_override
+ void OnReload(ServerConfig *conf, ConfigReader &reader) anope_override
{
- ConfigReader config;
- this->NSEmailMax = config.ReadInteger("ns_maxemail", "maxemails", "0", 0, false);
- Log(LOG_DEBUG) << "[ns_maxemail] NSEmailMax set to " << NSEmailMax;
+ this->NSEmailMax = reader.ReadInteger("ns_maxemail", "maxemails", "0", 0, false);
}
EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> &params) anope_override