fix ask fil

This commit is contained in:
sidya82 2015-04-16 11:47:54 +02:00
parent 34ed739811
commit ef0de22c54
1 changed files with 3 additions and 2 deletions

View File

@ -108,7 +108,8 @@ def main():
sys.exit(0)
## Handle a connection from a client.
##
# Handle a connection from a client.
# Wait for request from the client
# @param connection the socket descriptor of the connection
# @param client_adress ("ip", port) of the connection
@ -183,7 +184,7 @@ def handle_request(connection, data):
private_message(connection, array_data[1], " ".join(array_data[2:]))
return
if array_data[0] == "/pmfile":
ask_file(connection, array_data[1], array_data[2])
ask_file(connection, array_data[1], " ".join(array_data[2:]))
return
if array_data[0] == "/acceptfile":
accept_file(connection, array_data[1], " ".join(array_data[3:]), array_data[2])