diff options
Diffstat (limited to 'modules/core/os_update.cpp')
-rw-r--r-- | modules/core/os_update.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/os_update.cpp b/modules/core/os_update.cpp index 094f3570d..8a1e10c68 100644 --- a/modules/core/os_update.cpp +++ b/modules/core/os_update.cpp @@ -12,6 +12,7 @@ /*************************************************************************/ #include "module.h" +#include "operserv.h" class CommandOSUpdate : public Command { @@ -48,7 +49,10 @@ class OSUpdate : public Module this->SetAuthor("Anope"); this->SetType(CORE); - this->AddCommand(OperServ, &commandosupdate); + if (!operserv) + throw ModuleException("OperServ is not loaded!"); + + this->AddCommand(operserv->Bot(), &commandosupdate); } }; |