From 0a8bb8808549e0f93a690fa887f46af03768c9db Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 2 Oct 2010 03:08:29 -0400 Subject: Made OperServ and Global optional --- modules/core/os_global.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/core') diff --git a/modules/core/os_global.cpp b/modules/core/os_global.cpp index 961a70ab4..a63e211cd 100644 --- a/modules/core/os_global.cpp +++ b/modules/core/os_global.cpp @@ -57,6 +57,10 @@ class OSGlobal : public Module this->SetAuthor("Anope"); this->SetType(CORE); + if (Config->s_GlobalNoticer.empty()) + throw ModuleException("Global is disabled"); + + // Maybe we should put this ON Global? this->AddCommand(OperServ, &commandosglobal); } }; -- cgit