From 080c6f98cff757460d9e7975c02b264123e54e77 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 30 Nov 2023 22:38:28 +0000 Subject: [PATCH] Update InteractionService.cs --- SecondBotEvents/Services/InteractionService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SecondBotEvents/Services/InteractionService.cs b/SecondBotEvents/Services/InteractionService.cs index 986d28b..6946a57 100644 --- a/SecondBotEvents/Services/InteractionService.cs +++ b/SecondBotEvents/Services/InteractionService.cs @@ -54,7 +54,7 @@ namespace SecondBotEvents.Services } if (myConfig.GetAcceptFromMasterOnly() == true) { - if(master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == false) + if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == false) { JsonOuput(false, sourceName, avatarName, "interactions are locked to master only"); return false; @@ -63,6 +63,10 @@ namespace SecondBotEvents.Services } if (enabledByConfig == false) { + if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == true) + { + return true; + } JsonOuput(false, sourceName, avatarName, "disabled by config"); return false; }