1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:17:51 +08:00

Catch and warn about osu!stable lobbies

This commit is contained in:
jvyden 2024-03-06 01:17:11 -05:00
parent 9871300317
commit 98ca021e66
No known key found for this signature in database
GPG Key ID: 18BCF2BE0262B278

View File

@ -191,6 +191,15 @@ namespace osu.Desktop
game.Window?.Raise();
Logger.Log($"Received room secret from Discord RPC Client: {args.Secret}", LoggingTarget.Network, LogLevel.Debug);
// Stable and Lazer share the same Discord client ID, meaning they can accept join requests from each other.
// Since they aren't compatible in multi, see if stable's format is being used and log to avoid confusion.
// https://discord.com/channels/188630481301012481/188630652340404224/1214697229063946291
if (args.Secret[0] != '{')
{
Logger.Log("osu!stable rooms are not compatible with lazer.", LoggingTarget.Network, LogLevel.Important);
return;
}
if (!tryParseRoomSecret(args.Secret, out long roomId, out string? password))
{
Logger.Log("Could not join multiplayer room.", LoggingTarget.Network, LogLevel.Important);