Update server.py
This commit is contained in:
parent
0f970c1e39
commit
3d840515a3
1 changed files with 5 additions and 5 deletions
10
server.py
10
server.py
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue