summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
authorberry :3 <[email protected]>2025-04-17 11:08:36 +0300
committerberry :3 <[email protected]>2025-04-17 11:08:36 +0300
commit8d6f53a1c57f6b711ca0fd036f496ef7ca32d8b1 (patch)
treec05fd59dfd02e8f320f43bb10930b6de65062503 /main.py
parent5272fc9e2ddcc9ac4203abb9e46a02168facc325 (diff)
ban permission
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 dc467df..4b81068 100644
--- a/main.py
+++ b/main.py
@@ -459,7 +459,7 @@ async def handler(websocket):
                     await websocket.send(util.error("unauthorized", listener))

                     continue

                 username = client_data[str(websocket.id)]["username"]

-                if "KICK" not in db.acc.get_perms(username):

+                if "BAN" not in db.acc.get_perms(username):

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

                     continue

                 r["username"] = r["username"].lower()