From 26f76ef7b9fb77aa2ef71746ad00ae02dd88395d Mon Sep 17 00:00:00 2001 From: Hokuto Chen Date: Tue, 10 Jan 2023 14:39:23 +0000 Subject: [PATCH] Fix for DMHelpText --- src/NadekoBot/Modules/Help/HelpService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Help/HelpService.cs b/src/NadekoBot/Modules/Help/HelpService.cs index bec3d1642..87203776f 100644 --- a/src/NadekoBot/Modules/Help/HelpService.cs +++ b/src/NadekoBot/Modules/Help/HelpService.cs @@ -45,7 +45,7 @@ public class HelpService : IExecNoCommand, INService // only send dm help text if it contains one of the keywords, if they're specified // if they're not, then reply to every DM - if (settings.DmHelpTextKeywords.Any() && !settings.DmHelpTextKeywords.Any(k => msg.Content.Contains(k))) + if (settings.DmHelpTextKeywords is not null && !settings.DmHelpTextKeywords.Any(k => msg.Content.Contains(k))) return Task.CompletedTask; var rep = new ReplacementBuilder().WithOverride("%prefix%", () => _bss.Data.Prefix) @@ -188,4 +188,4 @@ public class HelpService : IExecNoCommand, INService private string GetText(LocStr str, IGuild guild) => _strings.GetText(str, guild?.Id); -} \ No newline at end of file +}