Skip to content

Commit 730ad0a

Browse files
committed
forgot lower
1 parent afd0045 commit 730ad0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nightwatch/rics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def route_index(client: ClientJoinModel) -> JSONResponse:
106106
"message": "Requested username has whitespace that should be removed prior to joining."
107107
}, status_code = 400)
108108

109-
if client.username in ["nightwatch", "admin", "moderator"]:
109+
if client.username.lower() in ["nightwatch", "admin", "moderator"]:
110110
return JSONResponse({
111111
"code": 400,
112112
"message": "Requested username is restricted for use."

0 commit comments

Comments
 (0)