From 93a32f863a76433f57c3f8a536d3ed70fd6a9a83 Mon Sep 17 00:00:00 2001 From: Smieszkokoleszko <63968615+Smieszkokoleszko@users.noreply.github.com> Date: Tue, 10 May 2022 18:41:48 +0200 Subject: [PATCH] Quick fix of broken signups reserved slots (#63) --- ArmaforcesMissionBot/Modules/Signups.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArmaforcesMissionBot/Modules/Signups.cs b/ArmaforcesMissionBot/Modules/Signups.cs index 14ce4f6..a90a216 100644 --- a/ArmaforcesMissionBot/Modules/Signups.cs +++ b/ArmaforcesMissionBot/Modules/Signups.cs @@ -240,9 +240,10 @@ public async Task AddTeam([Remainder]string teamText) if(match.Groups.Count == 4) { slot.Name = match.Groups[3].Value; - foreach(var user in Context.Message.MentionedUsers) + slot.Name = slot.Name.Replace("<@", "<@!"); + + foreach (var user in Context.Message.MentionedUsers) { - slot.Name = slot.Name.Replace("<@", "<@!"); if(slot.Name.Contains(user.Mention)) { slot.Name = slot.Name.Replace(user.Mention, "").TrimEnd();