From 6fc00fa62905e5990fa9667f540e10a775832540 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 23 Nov 2015 12:51:00 +0100 Subject: Implement ModeHandler::RegisterService() --- src/modules.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/modules.cpp') 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(&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(&item))) throw ModuleException("Extension " + std::string(item.name) + " already exists."); -- cgit v1.2.3