diff options
Diffstat (limited to 'modules/core/os_oline.cpp')
-rw-r--r-- | modules/core/os_oline.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/core/os_oline.cpp b/modules/core/os_oline.cpp index 0e4835cff..861ea310a 100644 --- a/modules/core/os_oline.cpp +++ b/modules/core/os_oline.cpp @@ -73,16 +73,15 @@ class OSOLine : public Module CommandOSOLine commandosoline; public: - OSOLine(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) + OSOLine(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE) { - if (!ircd->omode) + if (!ircd || !ircd->omode) throw ModuleException("Your IRCd does not support OMODE."); if (!operserv) throw ModuleException("OperServ is not loaded!"); this->SetAuthor("Anope"); - this->SetType(CORE); this->AddCommand(operserv->Bot(), &commandosoline); } |