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
|
|
@ -272,7 +272,7 @@ namespace ServerManagerTool.Plugin.Common
|
|||
return false;
|
||||
|
||||
var plugins = Plugins.Where(p => (p.PluginType is nameof(IAlertPlugin)) && (p.Plugin?.Enabled ?? false));
|
||||
if (plugins.Count() == 0)
|
||||
if (plugins.IsEmpty())
|
||||
return false;
|
||||
|
||||
lock (_syncLockProcessAlert)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue