We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c4ed2f commit 160ba17Copy full SHA for 160ba17
src/server/user.d
@@ -312,10 +312,8 @@ final class User
312
// Only printable ASCII characters allowed
313
return "Invalid characters in nick.";
314
315
- static immutable forbidden_names = [server_username];
316
-
317
- foreach (ref name ; forbidden_names) if (name == username)
318
- // Official server returns empty detail
+ if (username == server_username)
+ // Disallowed, official server returns empty detail
319
return "";
320
321
return null;
0 commit comments