Update server.py

This commit is contained in:
Nova Cat 2024-12-09 13:57:21 -08:00
parent dd6e12a7de
commit 08b8f93ce8

View file

@ -62,6 +62,7 @@ def session(connection, client):
pass
if command == "NICK":
pending = text.split(" ")[1]
if pending[0] == ":": pednding[1:]
if pending in nickname_list:
connection.sendall(bytes(f":{server} 433 * {pending} :Nickname is already in use.\r\n","UTF-8"))
pending = "*"