Update Alert.cs (#2496)

This commit is contained in:
dariusel_caroserie 2023-05-06 16:55:21 +03:00 committed by GitHub
parent f94c1ed60d
commit 7107023d37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,10 +92,10 @@ namespace MinecraftClient.ChatBots
text = GetVerbatim(text).ToLower(); text = GetVerbatim(text).ToLower();
//Proceed only if no exclusions are found in text //Proceed only if no exclusions are found in text
if (!Config.Excludes.Any(exclusion => text.Contains(exclusion))) if (!Config.Excludes.Any(exclusion => text.Contains(exclusion.ToLower())))
{ {
//Show an alert for each alert item found in text, if any //Show an alert for each alert item found in text, if any
foreach (string alert in Config.Matches.Where(alert => text.Contains(alert))) foreach (string alert in Config.Matches.Where(alert => text.Contains(alert.ToLower())))
{ {
if (Config.Beep_Enabled) if (Config.Beep_Enabled)
Console.Beep(); //Text found ! Console.Beep(); //Text found !