From 8812910509f0d5c450e9aa3640c09b3cbf44d579 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Sun, 2 Feb 2025 00:06:46 +0000 Subject: [PATCH] patch interaction events to support dot name for masters following command config flag --- SecondBotEvents/Services/InteractionService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SecondBotEvents/Services/InteractionService.cs b/SecondBotEvents/Services/InteractionService.cs index ea57a26..79142db 100644 --- a/SecondBotEvents/Services/InteractionService.cs +++ b/SecondBotEvents/Services/InteractionService.cs @@ -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