From 494048b9ca4e410c193935b91996eda29a81e2e9 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 30 Nov 2023 22:41:39 +0000 Subject: [PATCH] Update InteractionService.cs --- .../Services/InteractionService.cs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/SecondBotEvents/Services/InteractionService.cs b/SecondBotEvents/Services/InteractionService.cs index 6946a57..4c970f3 100644 --- a/SecondBotEvents/Services/InteractionService.cs +++ b/SecondBotEvents/Services/InteractionService.cs @@ -52,25 +52,16 @@ namespace SecondBotEvents.Services JsonOuput(false, sourceName, avatarName, "masters AV list is disabled: Please set EnableMasterControls in Commands service to true"); return false; } - if (myConfig.GetAcceptFromMasterOnly() == true) + if(enabledByConfig == true) { - if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == false) - { - JsonOuput(false, sourceName, avatarName, "interactions are locked to master only"); - return false; - } return true; } - if (enabledByConfig == false) + if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == true) { - if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == true) - { - return true; - } - JsonOuput(false, sourceName, avatarName, "disabled by config"); - return false; + return true; } - return true; + JsonOuput(false, sourceName, avatarName, "disabled by config"); + return false; } protected void BotClientRestart(object o, BotClientNotice e)