From 50282f850eb95bd8c5f75da684dc60a770290c71 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 29 Jan 2025 19:28:02 -0800 Subject: [PATCH] checkpoitn --- server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 49b0228..b329d91 100644 --- a/server.py +++ b/server.py @@ -230,6 +230,7 @@ def session(connection, client, ip, isssl=False): usesIRCv3 = False CAPEND = False clident = None + pendingCommands = [] # list of commands that were executed before verification try: print("Connected to client IP: {}".format(client)) connection.sendall(bytes(f":{server} NOTICE * :*** Looking for your hostname...\r\n","UTF-8")) @@ -704,8 +705,8 @@ def session(connection, client, ip, isssl=False): connection.sendall(bytes(f":{server} 401 {pending} {target} :No such nick/channel\r\n","UTF-8")) else: connection.sendall(bytes(f":{server} 461 {pending} {command} :Not enough parameters\r\n","UTF-8")) - - + else: + pendingCommands.append(text) # Ignore empty text elif text.split(" ")[0] == "":