From 3d840515a3cd5be170a1a668ee3408e77bbe6f2d Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 9 Dec 2024 11:16:30 -0800 Subject: [PATCH] Update server.py --- server.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server.py b/server.py index 3ae43a3..5e42ba3 100644 --- a/server.py +++ b/server.py @@ -47,12 +47,12 @@ def session(connection, client): print("Received data: {}".format(data)) try: textt = data.decode() - command = text.split(" ")[0].upper() - try: - args = text.split(" ")[1:] - except: - pass for text in textt.split("\r\n"): + command = text.split(" ")[0].upper() + try: + args = text.split(" ")[1:] + except: + pass if command == "NICK": pending = text.split(" ")[1] if pending in nickname_list: