From afa7a26bf210f90611832f156b660c6d6d999f40 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 11 Dec 2024 22:32:38 -0800 Subject: [PATCH] Fix \n --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 44d546c..22b1db3 100644 --- a/server.py +++ b/server.py @@ -110,7 +110,7 @@ def session(connection, client): print("Received data: {}".format(data)) try: textt = data.decode() - for text in textt.split("\r\n"): + for text in textt.replace("\r", "").split("\n"): command = text.split(" ")[0].upper() try: args = text.split(" ")[1:]