summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/Messenger.c4
-rw-r--r--core/Messenger.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/Messenger.c b/core/Messenger.c
index 4ea7e507..24797d7a 100644
--- a/core/Messenger.c
+++ b/core/Messenger.c
@@ -496,8 +496,8 @@ static void check_friend_connectionstatus(int friendnumber, uint8_t status)
496 return; 496 return;
497 if (status == NOFRIEND) 497 if (status == NOFRIEND)
498 return; 498 return;
499 const uint8_t is_connected = friendlist[friendnumber].status == FRIEND_ONLINE; 499 const uint8_t was_connected = friendlist[friendnumber].status == FRIEND_ONLINE;
500 const uint8_t was_connected = status == FRIEND_ONLINE; 500 const uint8_t is_connected = status == FRIEND_ONLINE;
501 if (is_connected != was_connected) 501 if (is_connected != was_connected)
502 friend_connectionstatuschange(friendnumber, is_connected); 502 friend_connectionstatuschange(friendnumber, is_connected);
503} 503}
diff --git a/core/Messenger.h b/core/Messenger.h
index fa0daf41..9352cfbb 100644
--- a/core/Messenger.h
+++ b/core/Messenger.h
@@ -211,7 +211,7 @@ void m_callback_userstatus(void (*function)(int, USERSTATUS));
211 in that case, you should discard it. */ 211 in that case, you should discard it. */
212void m_callback_read_receipt(void (*function)(int, uint32_t)); 212void m_callback_read_receipt(void (*function)(int, uint32_t));
213 213
214/* set the callback for conenction status changes 214/* set the callback for connection status changes
215 function(int friendnumber, uint8_t status) 215 function(int friendnumber, uint8_t status)
216 status: 216 status:
217 0 -- friend went offline after being previously online 217 0 -- friend went offline after being previously online