Skip to content

Commit

Permalink
Quick fix of broken signups reserved slots (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smieszkokoleszko authored May 10, 2022
1 parent 640606f commit 93a32f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ArmaforcesMissionBot/Modules/Signups.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 93a32f8

Please sign in to comment.