diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Messenger.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Messenger.c b/core/Messenger.c index 37ab5e2d..8c88c305 100644 --- a/core/Messenger.c +++ b/core/Messenger.c | |||
@@ -231,7 +231,11 @@ uint32_t m_sendmessage(int friendnumber, uint8_t *message, uint32_t length) | |||
231 | uint32_t msgid = ++friendlist[friendnumber].message_id; | 231 | uint32_t msgid = ++friendlist[friendnumber].message_id; |
232 | if (msgid == 0) | 232 | if (msgid == 0) |
233 | msgid = 1; /* otherwise, false error */ | 233 | msgid = 1; /* otherwise, false error */ |
234 | return m_sendmessage_withid(friendnumber, msgid, message, length); | 234 | if(m_sendmessage_withid(friendnumber, msgid, message, length)) { |
235 | return msgid; | ||
236 | } | ||
237 | |||
238 | return 0; | ||
235 | } | 239 | } |
236 | 240 | ||
237 | uint32_t m_sendmessage_withid(int friendnumber, uint32_t theid, uint8_t *message, uint32_t length) | 241 | uint32_t m_sendmessage_withid(int friendnumber, uint32_t theid, uint8_t *message, uint32_t length) |