From 2364bfadb156db1787d5323234f3f7673a8e50ed Mon Sep 17 00:00:00 2001 From: Nova Cat Date: Wed, 11 Dec 2024 15:22:20 -0800 Subject: [PATCH] close server --- server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server.py b/server.py index f0479b3..823d29a 100644 --- a/server.py +++ b/server.py @@ -351,6 +351,7 @@ def session(connection, client): if "o" in property_list[pending]["modes"]: tcp_socket.shutdown(socket.SHUT_RDWR) tcp_socket.close() + global opened opened = False else: connection.sendall(bytes(f":{server} 481 {pending} :Permission Denied- You're not an IRC operator\r\n","UTF-8"))