Update InteractionService.cs
This commit is contained in:
parent
34ca8b69e9
commit
494048b9ca
1 changed files with 5 additions and 14 deletions
|
|
@ -52,25 +52,16 @@ 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;
|
|
||||||
}
|
|
||||||
JsonOuput(false, sourceName, avatarName, "disabled by config");
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
return true;
|
JsonOuput(false, sourceName, avatarName, "disabled by config");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void BotClientRestart(object o, BotClientNotice e)
|
protected void BotClientRestart(object o, BotClientNotice e)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue