mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 19:35:24 +02:00
Disconnect if bad websocket requests instead of flasks abort
This commit is contained in:
@ -74,6 +74,8 @@ class Gateway(Namespace):
|
||||
visitor_mode = data["visitor_mode"]
|
||||
if not visitor_mode:
|
||||
key = None
|
||||
if "unauthenticated" not in session:
|
||||
disconnect()
|
||||
if session["unauthenticated"]:
|
||||
key = session["user_keys"][guild_id]
|
||||
status = update_user_status(guild_id, session["username"], key)
|
||||
|
Reference in New Issue
Block a user