1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

revert ChannelManager changes

This commit is contained in:
Davran Dilshat 2021-09-05 10:19:04 +01:00
parent ea3be927d7
commit 9aa1564e0d

View File

@ -256,21 +256,8 @@ namespace osu.Game.Online.Chat
JoinChannel(channel);
break;
case "chat":
if (string.IsNullOrWhiteSpace(content))
{
target.AddNewMessages(new ErrorMessage("Usage: /chat [user]"));
break;
}
var request = new GetUserRequest(content);
request.Success += OpenPrivateChannel;
request.Failure += _ => target.AddNewMessages(new ErrorMessage("User not found."));
api.Queue(request);
break;
case "help":
target.AddNewMessages(new InfoMessage("Supported commands: /help, /me [action], /join [channel], /chat [user], /np"));
target.AddNewMessages(new InfoMessage("Supported commands: /help, /me [action], /join [channel], /np"));
break;
default:
@ -614,4 +601,4 @@ namespace osu.Game.Online.Chat
: channel.Id == Id;
}
}
}
}