summaryrefslogtreecommitdiff
path: root/modules/core/os_global.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-02 03:08:29 -0400
committerAdam <Adam@anope.org>2010-10-02 03:08:29 -0400
commit0a8bb8808549e0f93a690fa887f46af03768c9db (patch)
tree5d082157c884fa2eaf0f3e072a17ae40f33e6f70 /modules/core/os_global.cpp
parenta62d824cb4266cdfbfbc81e142b22f1a2e7ed7be (diff)
Made OperServ and Global optional
Diffstat (limited to 'modules/core/os_global.cpp')
-rw-r--r--modules/core/os_global.cpp4
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);
}
};