From 87983d97c3841483f6e2fade6c9b4ca09df0e4df Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Mon, 15 May 2017 16:05:52 +0200 Subject: [PATCH] Forgot to cache if SetSettings is used --- src/NadekoBot/Services/GreetSettingsService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NadekoBot/Services/GreetSettingsService.cs b/src/NadekoBot/Services/GreetSettingsService.cs index f19ad2f9..253a4a14 100644 --- a/src/NadekoBot/Services/GreetSettingsService.cs +++ b/src/NadekoBot/Services/GreetSettingsService.cs @@ -67,6 +67,9 @@ namespace NadekoBot.Services conf.SendChannelByeMessage = settings.SendChannelByeMessage; await uow.CompleteAsync().ConfigureAwait(false); + + var toAdd = GreetSettings.Create(conf); + GuildConfigsCache.AddOrUpdate(guildId, toAdd, (key, old) => toAdd); } return true;