summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
authorberry :3 <[email protected]>2025-04-25 20:45:07 +0300
committerberry :3 <[email protected]>2025-04-25 20:45:07 +0300
commitdc1a5d63ca318befa962c0d748a12dd428d7fe68 (patch)
tree6dd2d2a6b82109146ac6d8affe7eadd2b742df4a /main.py
parent567b0eab426eb28968986411beea60dcc6317c08 (diff)
fix deleted accs HEAD master
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 = []