Update server.py
This commit is contained in:
parent
dd6e12a7de
commit
08b8f93ce8
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ def session(connection, client):
|
||||||
pass
|
pass
|
||||||
if command == "NICK":
|
if command == "NICK":
|
||||||
pending = text.split(" ")[1]
|
pending = text.split(" ")[1]
|
||||||
|
if pending[0] == ":": pednding[1:]
|
||||||
if pending in nickname_list:
|
if pending in nickname_list:
|
||||||
connection.sendall(bytes(f":{server} 433 * {pending} :Nickname is already in use.\r\n","UTF-8"))
|
connection.sendall(bytes(f":{server} 433 * {pending} :Nickname is already in use.\r\n","UTF-8"))
|
||||||
pending = "*"
|
pending = "*"
|
||||||
|
|
Loading…
Reference in a new issue