mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-24 01:14:12 +00:00
Fix announcement formatting
This commit is contained in:
parent
20834b677a
commit
c78276b6d5
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue