patch interaction events to support dot name for masters following command config flag
This commit is contained in:
parent
9c42552a0f
commit
8812910509
1 changed files with 8 additions and 0 deletions
|
|
@ -85,6 +85,14 @@ namespace SecondBotEvents.Services
|
||||||
whyAccepted = "on friends list";
|
whyAccepted = "on friends list";
|
||||||
accepted = GetClient().Friends.FriendList.ContainsKey(avataruuid);
|
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)
|
if (accepted == false)
|
||||||
{
|
{
|
||||||
// check the one time accept list
|
// check the one time accept list
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue