diff options
| author | 2026-02-27 21:13:21 +0000 | |
|---|---|---|
| committer | 2026-03-02 19:01:01 +0000 | |
| commit | 0c02218d0666397c6ba2b8c0097df83f83d1f50f (patch) | |
| tree | fc102c2ebbfffadb985404478605e569da9d92b4 /modules/services.cpp | |
| parent | Add irc::less and convert irc::insensitive_swo to use it. (diff) | |
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.
Diffstat (limited to 'modules/services.cpp')
| -rw-r--r-- | modules/services.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
