diff options
| author | 2026-02-27 21:13:21 +0000 | |
|---|---|---|
| committer | 2026-03-02 19:01:01 +0000 | |
| commit | 0c02218d0666397c6ba2b8c0097df83f83d1f50f (patch) | |
| tree | fc102c2ebbfffadb985404478605e569da9d92b4 /src/logging.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 'src/logging.cpp')
| -rw-r--r-- | src/logging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.cpp b/src/logging.cpp index 2f782646e..71c6ce986 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -120,7 +120,7 @@ bool Log::FileMethod::Tick() } Log::Engine::Engine(Module* Creator, const std::string& Name) - : DataProvider(Creator, "log/" + Name) + : DataProvider(Creator, "Log::Engine", Name) { } @@ -239,7 +239,7 @@ void Log::Manager::OpenLogs(bool requiremethods) for (const auto& [_, tag] : ServerInstance->Config->ConfTags("log")) { const std::string methodstr = tag->getString("method", "file", 1); - Log::Engine* engine = ServerInstance->Modules.FindDataService<Log::Engine>("log/" + methodstr); + Log::Engine* engine = ServerInstance->Modules.FindDataService<Log::Engine>("Log::Engine", methodstr); if (!engine) { if (!requiremethods) |
