summaryrefslogtreecommitdiff
path: root/modules/core/os_staff.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_staff.cpp')
-rw-r--r--modules/core/os_staff.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/core/os_staff.cpp b/modules/core/os_staff.cpp
index f2dbc7613..2e9dce04b 100644
--- a/modules/core/os_staff.cpp
+++ b/modules/core/os_staff.cpp
@@ -12,6 +12,7 @@
/*************************************************************************/
#include "module.h"
+#include "operserv.h"
class CommandOSStaff : public Command
{
@@ -70,7 +71,10 @@ class OSStaff : public Module
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(OperServ, &commandosstaff);
+ if (!operserv)
+ throw ModuleException("OperServ is not loaded!");
+
+ this->AddCommand(operserv->Bot(), &commandosstaff);
}
};