summaryrefslogtreecommitdiff
path: root/modules/core/ns_cert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_cert.cpp')
-rw-r--r--modules/core/ns_cert.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/core/ns_cert.cpp b/modules/core/ns_cert.cpp
index 87acf7ac2..0029bfe34 100644
--- a/modules/core/ns_cert.cpp
+++ b/modules/core/ns_cert.cpp
@@ -206,12 +206,11 @@ class NSCert : public Module
}
public:
- NSCert(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
+ NSCert(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE)
{
this->SetAuthor("Anope");
- this->SetType(CORE);
- if (!ircd->certfp)
+ if (!ircd || !ircd->certfp)
throw ModuleException("Your IRCd does not support ssl client certificates");
if (!nickserv)