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