From a294e3bf8fe52faef98aaf873f2a4be7488f3409 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 1 Oct 2022 08:52:29 +0200 Subject: [PATCH] Fixed -c GlobalNadeko compilation --- src/NadekoBot/Bot.cs | 4 ---- .../Administration/ServerLog/DummyLogCommandService.cs | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/NadekoBot/Bot.cs b/src/NadekoBot/Bot.cs index f3820b616..00020ab3e 100644 --- a/src/NadekoBot/Bot.cs +++ b/src/NadekoBot/Bot.cs @@ -116,10 +116,6 @@ public sealed class Bot // cache .AddCache(_creds); - // admin -#if GLOBAL_NADEKO - svcs.AddSingleton(); -#endif svcs.AddHttpClient(); svcs.AddHttpClient("memelist") diff --git a/src/NadekoBot/Modules/Administration/ServerLog/DummyLogCommandService.cs b/src/NadekoBot/Modules/Administration/ServerLog/DummyLogCommandService.cs index 4b9d156ec..73d295392 100644 --- a/src/NadekoBot/Modules/Administration/ServerLog/DummyLogCommandService.cs +++ b/src/NadekoBot/Modules/Administration/ServerLog/DummyLogCommandService.cs @@ -3,6 +3,9 @@ namespace NadekoBot.Modules.Administration; public sealed class DummyLogCommandService : ILogCommandService +#if GLOBAL_NADEKO +, INservice +#endif { public void AddDeleteIgnore(ulong xId) {