add support to get the object owner name for interaction events
This commit is contained in:
parent
1009526b79
commit
8aae7c5d46
1 changed files with 6 additions and 0 deletions
|
|
@ -63,12 +63,18 @@ namespace SecondBotEvents.Services
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bool accepted = false;
|
bool accepted = false;
|
||||||
|
string ObjectOwnerName = master.DataStoreService.GetAvatarName(avataruuid);
|
||||||
string whyAccepted = "rejected request";
|
string whyAccepted = "rejected request";
|
||||||
if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == true)
|
if (master.CommandsService.myConfig.GetMastersCSV().Contains(avatarName) == true)
|
||||||
{
|
{
|
||||||
whyAccepted = "on owners list";
|
whyAccepted = "on owners list";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (master.CommandsService.myConfig.GetMastersCSV().Contains(ObjectOwnerName) == true)
|
||||||
|
{
|
||||||
|
whyAccepted = "Object Owner is on master list";
|
||||||
|
return true;
|
||||||
|
}
|
||||||
else if (ConfigAcceptLevel == "Anyone")
|
else if (ConfigAcceptLevel == "Anyone")
|
||||||
{
|
{
|
||||||
whyAccepted = "Accepting from anyone";
|
whyAccepted = "Accepting from anyone";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue