Skip to content

Commit

Permalink
forgot lower
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Nov 25, 2024
1 parent afd0045 commit 730ad0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nightwatch/rics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def route_index(client: ClientJoinModel) -> JSONResponse:
"message": "Requested username has whitespace that should be removed prior to joining."
}, status_code = 400)

if client.username in ["nightwatch", "admin", "moderator"]:
if client.username.lower() in ["nightwatch", "admin", "moderator"]:
return JSONResponse({
"code": 400,
"message": "Requested username is restricted for use."
Expand Down

0 comments on commit 730ad0a

Please sign in to comment.