Update server.py
Some checks are pending
Check syntax / check (push) Waiting to run

This commit is contained in:
Nova Cat 2025-01-03 16:49:37 -08:00
parent bd77d99eb8
commit 2133b6de68

View file

@ -161,6 +161,7 @@ def session(connection, client, ip, ssl=False):
connection.sendall(bytes(f":{server} NOTICE * :{reason}\r\n","UTF-8")) 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":{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)\r\n","UTF-8"))
time.sleep(3)
raise Exception("Killed connection, IP is banned.") raise Exception("Killed connection, IP is banned.")
while True: while True:
try: try: