mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed a silly code ordering mistake
This commit is contained in:
parent
f66b6ce50b
commit
23f55c101d
|
@ -472,11 +472,9 @@ void m_callback_friend_status(void (*function)(int, uint8_t))
|
|||
|
||||
static void set_friend_status(int friendnumber, uint8_t status)
|
||||
{
|
||||
friendlist[friendnumber].status = status;
|
||||
if (friendlist[friendnumber].status == status)
|
||||
return;
|
||||
if (friend_status_isset)
|
||||
if (friendlist[friendnumber].status != status && friend_status_isset)
|
||||
friend_status(friendnumber, status);
|
||||
friendlist[friendnumber].status = status;
|
||||
}
|
||||
|
||||
#define PORT 33445
|
||||
|
|
Loading…
Reference in New Issue
Block a user