diff --git a/RegexBot/Module/AutoMod/ConfigItem.cs b/RegexBot/Module/AutoMod/ConfigItem.cs index f8795a3..c265aa1 100644 --- a/RegexBot/Module/AutoMod/ConfigItem.cs +++ b/RegexBot/Module/AutoMod/ConfigItem.cs @@ -157,6 +157,7 @@ namespace Noikoio.RegexBot.Module.AutoMod string msgcontent; if (MatchEmbed) msgcontent = SerializeEmbed(m.Embeds); else msgcontent = m.Content; + if (msgcontent == null) return false; // Min/max length check if (_msgMinLength != -1 && msgcontent.Length <= _msgMinLength) return false;