Skip to content

Commit 160ba17

Browse files
committed
user.d: minor cleanup
1 parent 4c4ed2f commit 160ba17

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/server/user.d

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,8 @@ final class User
312312
// Only printable ASCII characters allowed
313313
return "Invalid characters in nick.";
314314

315-
static immutable forbidden_names = [server_username];
316-
317-
foreach (ref name ; forbidden_names) if (name == username)
318-
// Official server returns empty detail
315+
if (username == server_username)
316+
// Disallowed, official server returns empty detail
319317
return "";
320318

321319
return null;

0 commit comments

Comments
 (0)