diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2013-08-08 13:19:55 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2013-08-08 13:42:27 -0400 |
commit | 23f55c101d3811409171991bd4dbdd4c8f0b9694 (patch) | |
tree | 8c53f41cb45e8a88ec81bdc249fbac829d4179ee /core | |
parent | f66b6ce50b4dc486290eaff1e078b2fe75975c65 (diff) |
Fixed a silly code ordering mistake
Diffstat (limited to 'core')
-rw-r--r-- | core/Messenger.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/Messenger.c b/core/Messenger.c index 29cd9252..4a897ec6 100644 --- a/core/Messenger.c +++ b/core/Messenger.c | |||
@@ -472,11 +472,9 @@ void m_callback_friend_status(void (*function)(int, uint8_t)) | |||
472 | 472 | ||
473 | static void set_friend_status(int friendnumber, uint8_t status) | 473 | static void set_friend_status(int friendnumber, uint8_t status) |
474 | { | 474 | { |
475 | friendlist[friendnumber].status = status; | 475 | if (friendlist[friendnumber].status != status && friend_status_isset) |
476 | if (friendlist[friendnumber].status == status) | ||
477 | return; | ||
478 | if (friend_status_isset) | ||
479 | friend_status(friendnumber, status); | 476 | friend_status(friendnumber, status); |
477 | friendlist[friendnumber].status = status; | ||
480 | } | 478 | } |
481 | 479 | ||
482 | #define PORT 33445 | 480 | #define PORT 33445 |