Fixed a silly code ordering mistake

This commit is contained in:
Maxim Biro 2013-08-08 13:19:55 -04:00
parent f66b6ce50b
commit 23f55c101d

View File

@ -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