diff --git a/server.py b/server.py index 772f1d7..cf6021e 100644 --- a/server.py +++ b/server.py @@ -717,6 +717,7 @@ def session(connection, client, ip, isssl=False): # Unknown command cmd = text.split(" ")[0] connection.sendall(bytes(f":{server} 421 {pending} {cmd} :Unknown command\r\n","UTF-8")) + pendingCommands = [] else: pendingCommands.append(text) except ssl.SSLEOFError: