Update onevent.cs

stops groupmon from attaching for disabled events.
This commit is contained in:
Madpeterz 2021-05-22 14:25:41 +01:00
parent 9dbb89aa31
commit 4e4e685b34

View file

@ -414,6 +414,10 @@ namespace BetterSecondbot.OnEvents
string[] skipped = new string[] { "None", "" }; string[] skipped = new string[] { "None", "" };
foreach (OnEvent E in Events) foreach (OnEvent E in Events)
{ {
if (E.Enabled == false)
{
continue;
}
if ((E.Monitor == "None") || (E.Monitor == "")) if ((E.Monitor == "None") || (E.Monitor == ""))
{ {
continue; continue;