patch interaction events to support dot name for masters following command config flag

This commit is contained in:
Madpeter 2025-02-02 00:06:46 +00:00
parent 9c42552a0f
commit 8812910509

View file

@ -85,6 +85,14 @@ namespace SecondBotEvents.Services
whyAccepted = "on friends list";
accepted = GetClient().Friends.FriendList.ContainsKey(avataruuid);
}
if ((accepted == false) && (master.CommandsService.myConfig.GetCheckDotNames() == true))
{
string[] bits = avatarName.ToLower().Split('.');
if (bits.Length == 2)
{
accepted = master.CommandsService.myConfig.GetMastersCSV().Contains(bits[0].FirstCharToUpper() + " " + bits[1].FirstCharToUpper());
}
}
if (accepted == false)
{
// check the one time accept list