mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Ensure empty pieces do not result in whitespace between elements
This commit is contained in:
@ -68,7 +68,15 @@ namespace osu.Game.Online.Chat
|
|||||||
break;
|
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();
|
Expire();
|
||||||
|
|
||||||
string getBeatmapPart()
|
string getBeatmapPart()
|
||||||
|
Reference in New Issue
Block a user