Skip to content

Commit

Permalink
ignore my stupid ass part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Nov 21, 2024
1 parent 48bae96 commit 28caf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nightwatch/server/utils/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ async def command_identify(state, client: NightwatchClient, data: models.Identif
log.info(client.id, f"Client has identified as '{data.name}'.")

# Send the chat history
await client.send("server", name = Constant.SERVER_NAME, online = len([k for k, v in state.clients.items() if v is not None]))
for message in state.chat_history:
await client.send("message", **message | {"history": True})

await client.send("server", name = Constant.SERVER_NAME, online = len([k for k, v in state.clients.items() if v is not None]))
broadcast(state, "message", text = f"{data.name} joined the chatroom.", user = Constant.SERVER_USER)
broadcast(state, "join", name = data.name)

Expand Down

0 comments on commit 28caf8d

Please sign in to comment.