Fixed file sending bug.

This commit is contained in:
irungentoo 2013-10-05 10:55:28 -04:00
parent b0f9e6db6f
commit b2c5e16132

View File

@ -1044,8 +1044,13 @@ int file_control(Messenger *m, int friendnumber, uint8_t send_receive, uint8_t f
if (friend_not_valid(m, friendnumber))
return 0;
if (send_receive == 1) {
if (m->friendlist[friendnumber].file_receiving[filenumber].status == FILESTATUS_NONE)
return 0;
} else {
if (m->friendlist[friendnumber].file_sending[filenumber].status == FILESTATUS_NONE)
return 0;
}
if (send_receive > 1)
return 0;