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:
parent
ea3be927d7
commit
9aa1564e0d
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user