Add serverside CHECK_NICK-command #231

Merged
lars.winzer merged 12 commits from feat/39-add-serverside-check-nick-command into main 2026-04-02 15:10:29 +02:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 93dba00a4d - Show all commits
@@ -14,7 +14,8 @@ public class CheckUsernameParser implements CommandParser<CheckUsernameRequest>
*/ */
@Override @Override
public CheckUsernameRequest parse(PrimitiveRequest primitiveRequest) { public CheckUsernameRequest parse(PrimitiveRequest primitiveRequest) {
RequestParameterAccessor accessor = new RequestParameterAccessor(primitiveRequest.parameters()); RequestParameterAccessor accessor =
new RequestParameterAccessor(primitiveRequest.parameters());
return new CheckUsernameRequest(primitiveRequest.context(), accessor.require("USERNAME")); return new CheckUsernameRequest(primitiveRequest.context(), accessor.require("USERNAME"));
} }
} }
@@ -9,7 +9,7 @@ public class CheckUsernameRequest extends Request {
/** /**
* Constructs a new CheckUsernameRequest with the given context and username to check * Constructs a new CheckUsernameRequest with the given context and username to check
* *
* @param context the {@link RequestContext} containing information for responding to the * @param context the {@link RequestContext} containing information for responding to the
* request * request
* @param username the username to check for availability * @param username the username to check for availability