Update server.py
This commit is contained in:
parent
0f970c1e39
commit
3d840515a3
1 changed files with 5 additions and 5 deletions
|
@ -47,12 +47,12 @@ def session(connection, client):
|
||||||
print("Received data: {}".format(data))
|
print("Received data: {}".format(data))
|
||||||
try:
|
try:
|
||||||
textt = data.decode()
|
textt = data.decode()
|
||||||
|
for text in textt.split("\r\n"):
|
||||||
command = text.split(" ")[0].upper()
|
command = text.split(" ")[0].upper()
|
||||||
try:
|
try:
|
||||||
args = text.split(" ")[1:]
|
args = text.split(" ")[1:]
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
for text in textt.split("\r\n"):
|
|
||||||
if command == "NICK":
|
if command == "NICK":
|
||||||
pending = text.split(" ")[1]
|
pending = text.split(" ")[1]
|
||||||
if pending in nickname_list:
|
if pending in nickname_list:
|
||||||
|
|
Loading…
Reference in a new issue