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/services.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/services.cpp') diff --git a/modules/services.cpp b/modules/services.cpp index 5eadc257e..70deec43e 100644 --- a/modules/services.cpp +++ b/modules/services.cpp @@ -58,7 +58,7 @@ private: void SetAvailable(bool online) { - auto api = ServerInstance->Modules.FindService(SERVICE_DATA, "accountproviderapi"); + auto *api = ServerInstance->Modules.FindService("accountproviderapi"); if (online && api != this) ServerInstance->Modules.AddService(*this); else if (!online && api == this) -- cgit v1.3.1-10-gc9f91