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: