Update server.py
This commit is contained in:
parent
3d9e7c9ec9
commit
4ebae2a9e5
1 changed files with 4 additions and 2 deletions
|
@ -191,7 +191,9 @@ def session(connection, client):
|
||||||
except:
|
except:
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
# Confirm QUIT and close the socket.
|
# Confirm QUIT and close the socket.
|
||||||
|
if connection.recv(2048):
|
||||||
connection.sendall(bytes(f":{pending}!~{username}@{hostname} {text}\r\n","UTF-8"))
|
connection.sendall(bytes(f":{pending}!~{username}@{hostname} {text}\r\n","UTF-8"))
|
||||||
|
if connection.recv(2048):
|
||||||
connection.sendall(bytes(f"ERROR :Closing Link: {hostname} ({msg})\r\n","UTF-8"))
|
connection.sendall(bytes(f"ERROR :Closing Link: {hostname} ({msg})\r\n","UTF-8"))
|
||||||
connection.close()
|
connection.close()
|
||||||
safe_quit = True
|
safe_quit = True
|
||||||
|
|
Loading…
Reference in a new issue