diff --git a/SecondBotEvents/Services/TriggerOnEventService.cs b/SecondBotEvents/Services/TriggerOnEventService.cs index 6295c16..cf27a9e 100644 --- a/SecondBotEvents/Services/TriggerOnEventService.cs +++ b/SecondBotEvents/Services/TriggerOnEventService.cs @@ -700,10 +700,17 @@ namespace SecondBotEvents.Services } if ((tracked.Count > 0) || (joined.Count > 0)) { + List seen = new List(); if (tracked.Count > 0) { + foreach (UUID a in tracked) { + if(seen.Contains(a) == true) + { + continue; + } + seen.Add(a); TriggerEvent("GuestLeaves", new Dictionary() { { "avataruuid", a.ToString() } }); } } @@ -711,6 +718,11 @@ namespace SecondBotEvents.Services { foreach (UUID a in joined) { + if (seen.Contains(a) == true) + { + continue; + } + seen.Add(a); TriggerEvent("GuestJoins", new Dictionary() { { "avataruuid", a.ToString() } }); } }