diff options
author | Adam <Adam@anope.org> | 2010-10-02 03:08:29 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-10-02 03:08:29 -0400 |
commit | 0a8bb8808549e0f93a690fa887f46af03768c9db (patch) | |
tree | 5d082157c884fa2eaf0f3e072a17ae40f33e6f70 /modules/core/os_global.cpp | |
parent | a62d824cb4266cdfbfbc81e142b22f1a2e7ed7be (diff) |
Made OperServ and Global optional
Diffstat (limited to 'modules/core/os_global.cpp')
-rw-r--r-- | modules/core/os_global.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); } }; |