From e40a59cc5683f960db1357cc60aa0082068f0b00 Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 26 Dec 2024 16:53:30 -0800 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 1fe20cd..17fd6da 100644 --- a/server.py +++ b/server.py @@ -381,8 +381,8 @@ def session(connection, client): msg = "Client Quit" else: msg = text.split(" ")[1:] - if msg[0] == ":": - msg=msg[1:] + if msg[0][0] == ":": + msg[0]=msg[0][1:] if len(msg) > 0: mse = " ".join(msg) msg = f"Quit: {mse}"