summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index f5a0209..4d2f85f 100644
--- a/main.py
+++ b/main.py
@@ -246,7 +246,7 @@ async def handler(websocket):
                 # if r["invite_code"] not in invite_codes:

                 #     await websocket.send(util.error("invalidInvite", listener))

                 #     continue

-                if db.acc.get(r["username"]) != "notExists":

+                if db.acc.get_if_deleted(r["username"]) != "notExists":

                     await websocket.send(util.error("usernameTaken", listener))

                     continue

                 ips = []