summaryrefslogtreecommitdiff
path: root/modules/extra/os_defcon.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-07-31 03:22:23 -0400
committerAdam <Adam@anope.org>2011-07-31 03:22:23 -0400
commit1cb11bba5dd36c2ac1f02e7b49c659de142ce481 (patch)
tree1650215b843b98fc64991f373b018dc0b238975c /modules/extra/os_defcon.cpp
parentf29c88bcd535e6dcf3bbf453423bca4b697a60fc (diff)
Fixed a few small problems, including m_ssl's connect feature sometimes failing for no good reason
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()