Fix announcement formatting

This commit is contained in:
Noi 2020-05-21 21:18:15 -07:00
parent 20834b677a
commit c78276b6d5

View file

@ -268,16 +268,12 @@ namespace BirthdayBot.BackgroundServices
namestrings.Sort(StringComparer.OrdinalIgnoreCase);
var namedisplay = new StringBuilder();
var first = true;
foreach (var item in namestrings)
{
if (!first)
{
namedisplay.Append(", ");
first = false;
}
namedisplay.Append(item);
}
namedisplay.Remove(0, 2); // Remove initial comma and space
try
{