mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Update Alert.cs (#2496)
This commit is contained in:
parent
f94c1ed60d
commit
7107023d37
1 changed files with 2 additions and 2 deletions
|
|
@ -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 !
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue