summaryrefslogtreecommitdiff
path: root/modules/extra/os_defcon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/os_defcon.cpp')
-rw-r--r--modules/extra/os_defcon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/extra/os_defcon.cpp b/modules/extra/os_defcon.cpp
index cad01e8a4..9cfe66e09 100644
--- a/modules/extra/os_defcon.cpp
+++ b/modules/extra/os_defcon.cpp
@@ -336,9 +336,6 @@ class OSDefcon : public Module
public:
OSDefcon(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, SUPPORTED), session_service("session"), akills("xlinemanager/sgline"), commandosdefcon(this)
{
- if (!DConfig.defaultlevel)
- throw ModuleException("Invalid configuration settings");
-
this->SetAuthor("Anope");
Implementation i[] = { I_OnReload, I_OnChannelModeSet, I_OnChannelModeUnset, I_OnPreCommand, I_OnUserConnect, I_OnChannelModeAdd, I_OnChannelCreate };
@@ -347,6 +344,9 @@ class OSDefcon : public Module
ModuleManager::RegisterService(&commandosdefcon);
this->OnReload();
+
+ if (!DConfig.defaultlevel)
+ throw ModuleException("Invalid configuration settings");
}
void OnReload()