From 8dc007b3b3b161c88a8f844a54571397b5b9c930 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 30 Nov 2023 22:32:33 +0000 Subject: [PATCH] Update InteractionService.cs --- SecondBotEvents/Services/InteractionService.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SecondBotEvents/Services/InteractionService.cs b/SecondBotEvents/Services/InteractionService.cs index 986965a..986d28b 100644 --- a/SecondBotEvents/Services/InteractionService.cs +++ b/SecondBotEvents/Services/InteractionService.cs @@ -46,7 +46,7 @@ namespace SecondBotEvents.Services JsonOuput(false, sourceName, avatarName, "Interactions hooks disabled"); return false; } - if (master.CommandsService.myConfig.GetEnableMasterControls() == ) + if (master.CommandsService.myConfig.GetEnableMasterControls() == false) { // master avatars list is not enabled. unable to continue JsonOuput(false, sourceName, avatarName, "masters AV list is disabled: Please set EnableMasterControls in Commands service to true"); @@ -54,6 +54,11 @@ namespace SecondBotEvents.Services } if (myConfig.GetAcceptFromMasterOnly() == 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)