summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/Messenger.c6
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
473static void set_friend_status(int friendnumber, uint8_t status) 473static 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