From 0c02218d0666397c6ba2b8c0097df83f83d1f50f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 27 Feb 2026 21:13:21 +0000 Subject: Massive rework of how internal service providers work. - ServiceType is dead. All modules use RegisterService now. - Modules can implement UnregisterService which is called from DelService now. - Split the service type prefix into its own field. - Renamed Service::name to Service::service_name. This revealed a few bugs. --- modules/cap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/cap.cpp') diff --git a/modules/cap.cpp b/modules/cap.cpp index cfc3e8e4a..c7d8b4273 100644 --- a/modules/cap.cpp +++ b/modules/cap.cpp @@ -170,7 +170,7 @@ public: cap->bit = AllocateBit(); cap->extitem = &capext; caps.emplace(cap->GetName(), cap); - ServerInstance->Modules.AddReferent("cap/" + cap->GetName(), cap); + ServerInstance->Modules.AddReferent("Cap::Capability", cap->GetName(), cap); evprov.Call(&Cap::EventListener::OnCapAddDel, cap, true); } -- cgit v1.3.1-10-gc9f91