summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-11-23 12:51:00 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-11-23 12:51:00 +0100
commit6fc00fa62905e5990fa9667f540e10a775832540 (patch)
treefa037bc3e25569d720d596139f120529e7642109 /src/modules.cpp
parent42de16029da37f08ce1827352aa78b4b29d888cb (diff)
Implement ModeHandler::RegisterService()
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index d28657ca8..f5998f79c 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -556,13 +556,6 @@ void ModuleManager::AddService(ServiceProvider& item)
{
switch (item.service)
{
- case SERVICE_MODE:
- {
- ModeHandler* mh = static_cast<ModeHandler*>(&item);
- ServerInstance->Modes->AddMode(mh);
- AddReferent((mh->GetModeType() == MODETYPE_CHANNEL ? "mode/" : "umode/") + item.name, &item);
- return;
- }
case SERVICE_METADATA:
if (!ServerInstance->Extensions.Register(static_cast<ExtensionItem*>(&item)))
throw ModuleException("Extension " + std::string(item.name) + " already exists.");