Update InteractionService.cs

This commit is contained in:
Madpeter 2023-11-30 22:41:39 +00:00
parent 34ca8b69e9
commit 494048b9ca

View file

@ -52,17 +52,10 @@ namespace SecondBotEvents.Services
JsonOuput(false, sourceName, avatarName, "masters AV list is disabled: Please set EnableMasterControls in Commands service to true"); JsonOuput(false, sourceName, avatarName, "masters AV list is disabled: Please set EnableMasterControls in Commands service to true");
return false; 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; return true;
} }
if (enabledByConfig == false)
{
if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == true) if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == true)
{ {
return true; return true;
@ -70,8 +63,6 @@ namespace SecondBotEvents.Services
JsonOuput(false, sourceName, avatarName, "disabled by config"); JsonOuput(false, sourceName, avatarName, "disabled by config");
return false; return false;
} }
return true;
}
protected void BotClientRestart(object o, BotClientNotice e) protected void BotClientRestart(object o, BotClientNotice e)
{ {