Clean up a few minor code quality issues in the chat system.

This commit is contained in:
Ben Rog-Wilhelm 2023-09-04 15:15:36 -05:00
parent ae58ca89eb
commit 41497958b6
3 changed files with 3 additions and 11 deletions

View file

@ -150,7 +150,7 @@ def speak(data, v):
@socketio.on('connect')
@chat_is_allowed()
def onConnect(v):
def on_connect(v):
if v.username not in online:
online.append(v.username)
@ -163,7 +163,7 @@ def onConnect(v):
@socketio.on('disconnect')
@chat_is_allowed()
def onDisconnect(v):
def on_disconnect(v):
if v.username in online:
online.remove(v.username)
@ -267,4 +267,3 @@ def reset_everything_seriously(_):
# Commit the changes to the database
g.db.commit()