Update InteractionService.cs
This commit is contained in:
parent
c05375b52c
commit
8dc007b3b3
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue