mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Changed the discord bot to be case insensitive.
Added IsEmpty and HasOne IEnumerable Extensions.
This commit is contained in:
parent
734332f10c
commit
dd431e93b2
20 changed files with 383 additions and 107 deletions
|
|
@ -115,7 +115,7 @@ namespace ServerManagerTool.Plugin.Discord
|
|||
&& cp.AlertTypes.Any(pn => pn.Value.Equals(alertType))
|
||||
&& cp.ProfileNames.Any(pn => pn.Value.Equals(profileName, StringComparison.OrdinalIgnoreCase))
|
||||
&& !string.IsNullOrWhiteSpace(cp.DiscordWebhookUrl));
|
||||
if (configProfiles == null || configProfiles.Count() == 0)
|
||||
if (configProfiles == null || configProfiles.IsEmpty())
|
||||
{
|
||||
#if DEBUG
|
||||
var logFile = Path.Combine(PluginHelper.PluginFolder, "DiscordErrors.log");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue