mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Ensure empty pieces do not result in whitespace between elements
This commit is contained in:
parent
2df6ccf33e
commit
b453eecebe
@ -68,7 +68,15 @@ namespace osu.Game.Online.Chat
|
||||
break;
|
||||
}
|
||||
|
||||
channelManager.PostMessage($"is {verb} {getBeatmapPart()} {getModPart()}", true, target);
|
||||
string[] pieces =
|
||||
{
|
||||
"is",
|
||||
verb,
|
||||
getBeatmapPart(),
|
||||
getModPart(),
|
||||
};
|
||||
|
||||
channelManager.PostMessage(string.Join(' ', pieces.Where(p => !string.IsNullOrEmpty(p))), true, target);
|
||||
Expire();
|
||||
|
||||
string getBeatmapPart()
|
||||
|
Loading…
Reference in New Issue
Block a user