diff --git a/osu.Game/Online/Chat/StandAloneChatDisplay.cs b/osu.Game/Online/Chat/StandAloneChatDisplay.cs index 0073af4197..5f2f1b8992 100644 --- a/osu.Game/Online/Chat/StandAloneChatDisplay.cs +++ b/osu.Game/Online/Chat/StandAloneChatDisplay.cs @@ -470,6 +470,24 @@ private void postMessage(TextBox sender, bool newText) break; } + + for (;;) + { + if (!(parts.Length == 2 && parts[0] == @"!mp")) + break; + + switch (parts[1]) + { + case @"abort": + if (!Client.IsHost) + return; + + Client.AbortMatch().FireAndForget(); + break; + } + + break; + } } TextBox.Text = string.Empty;