From 4cbe3548537cdf2937c4130f6d11e94317f29aef Mon Sep 17 00:00:00 2001 From: Decordy Date: Sat, 14 Feb 2026 18:36:55 +0200 Subject: [PATCH 1/2] Lists the host as the referee and disallows for the host to be addreffed. --- osu.Game/Online/Chat/StandAloneChatDisplay.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/osu.Game/Online/Chat/StandAloneChatDisplay.cs b/osu.Game/Online/Chat/StandAloneChatDisplay.cs index 6fffb7ca7f..dba6cefc46 100644 --- a/osu.Game/Online/Chat/StandAloneChatDisplay.cs +++ b/osu.Game/Online/Chat/StandAloneChatDisplay.cs @@ -36,6 +36,7 @@ using osu.Game.Resources.Localisation.Web; using osu.Game.Rulesets; using osu.Game.Rulesets.Mods; +using osu.Game.Screens.Edit.Compose.Components; using osu.Game.Screens.OnlinePlay; using osu.Game.Screens.OnlinePlay.Multiplayer; using osu.Game.Utils; @@ -700,12 +701,13 @@ private void postMessage(TextBox sender, bool newText) } else { - void printRefsList() => EnqueueBotMessage($@"Match referees: {string.Join(", ", multiplayerRefereeTracker.Referees)}"); + void printRefsList() => EnqueueBotMessage($@"Match referees: {string.Join(", ", new[] { API.LocalUser.Value }.Concat(multiplayerRefereeTracker.Referees))}"); switch (parts.Length) { // special-case addref. only handle it locally case 3 when parts[1] == @"addref": + APIUser? localUser = API.LocalUser.Value; queryUsername(parts[2]).ContinueWith(t => { APIUser? user = t.GetResultSafely(); @@ -716,6 +718,12 @@ private void postMessage(TextBox sender, bool newText) return; } + if (user.Id == localUser.Id) + { + EnqueueBotMessage(@"You can't addref yourself. Just make sure you have the host."); + return; + } + multiplayerRefereeTracker.AddRef(user); printRefsList(); }); From 282cb310b30a3332c03c31bf6ad44fefdbe63dbc Mon Sep 17 00:00:00 2001 From: Decordy Date: Sat, 14 Feb 2026 18:39:24 +0200 Subject: [PATCH 2/2] wth is this why is it here... --- osu.Game/Online/Chat/StandAloneChatDisplay.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/osu.Game/Online/Chat/StandAloneChatDisplay.cs b/osu.Game/Online/Chat/StandAloneChatDisplay.cs index dba6cefc46..d8d6911eaa 100644 --- a/osu.Game/Online/Chat/StandAloneChatDisplay.cs +++ b/osu.Game/Online/Chat/StandAloneChatDisplay.cs @@ -36,7 +36,6 @@ using osu.Game.Resources.Localisation.Web; using osu.Game.Rulesets; using osu.Game.Rulesets.Mods; -using osu.Game.Screens.Edit.Compose.Components; using osu.Game.Screens.OnlinePlay; using osu.Game.Screens.OnlinePlay.Multiplayer; using osu.Game.Utils;