From a89a10705c3f5612ab668479284379f2de13e9c5 Mon Sep 17 00:00:00 2001 From: swee Date: Fri, 3 Jan 2025 16:57:45 -0800 Subject: [PATCH] Update server.py --- server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.py b/server.py index 7275407..5f103a1 100644 --- a/server.py +++ b/server.py @@ -158,9 +158,8 @@ def session(connection, client, ip, ssl=False): if client[0] in banlist: print("Specified IP is banned, killing now.") reason = banlist[client[0]] - connection.sendall(bytes(f":{server} NOTICE * :{reason}\r\n","UTF-8")) connection.sendall(bytes(f":{server} 465 * :You are banned from this server\r\n","UTF-8")) - connection.sendall(bytes(f"ERROR :Closing Link: {hostname} (K-Lined)\r\n","UTF-8")) + connection.sendall(bytes(f"ERROR :Closing Link: {hostname} (K-Lined: {reason})\r\n","UTF-8")) time.sleep(3) raise Exception("Killed connection, IP is banned.") while True: