fix ask fil
This commit is contained in:
parent
ef0de22c54
commit
2d63806177
@ -181,16 +181,16 @@ def handle_request(connection, data):
|
|||||||
reject_private_message(connection, array_data[1])
|
reject_private_message(connection, array_data[1])
|
||||||
return
|
return
|
||||||
if array_data[0] == "/pm":
|
if array_data[0] == "/pm":
|
||||||
private_message(connection, array_data[1], " ".join(array_data[2:]))
|
private_message(connection, array_data[1], " ".join(array_data[2:]).strip())
|
||||||
return
|
return
|
||||||
if array_data[0] == "/pmfile":
|
if array_data[0] == "/pmfile":
|
||||||
ask_file(connection, array_data[1], " ".join(array_data[2:]))
|
ask_file(connection, array_data[1], " ".join(array_data[2:]).strip())
|
||||||
return
|
return
|
||||||
if array_data[0] == "/acceptfile":
|
if array_data[0] == "/acceptfile":
|
||||||
accept_file(connection, array_data[1], " ".join(array_data[3:]), array_data[2])
|
accept_file(connection, array_data[1], " ".join(array_data[3:]).strip(), array_data[2])
|
||||||
return
|
return
|
||||||
if array_data[0] == "/rejectfile":
|
if array_data[0] == "/rejectfile":
|
||||||
reject_file(connection, array_data[1], " ".join(array_data[2:]))
|
reject_file(connection, array_data[1], " ".join(array_data[2:]).strip())
|
||||||
return
|
return
|
||||||
connection.sendall("{}".format(COMMAND_NOT_FOUND).encode())
|
connection.sendall("{}".format(COMMAND_NOT_FOUND).encode())
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user