Update server.py

This commit is contained in:
Nova Cat 2024-12-09 11:16:30 -08:00
parent 0f970c1e39
commit 3d840515a3

View file

@ -47,12 +47,12 @@ def session(connection, client):
print("Received data: {}".format(data))
try:
textt = data.decode()
command = text.split(" ")[0].upper()
try:
args = text.split(" ")[1:]
except:
pass
for text in textt.split("\r\n"):
command = text.split(" ")[0].upper()
try:
args = text.split(" ")[1:]
except:
pass
if command == "NICK":
pending = text.split(" ")[1]
if pending in nickname_list: