summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/Messenger.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 863259ac..22adb088 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -491,21 +491,11 @@ static int send_message_generic(Messenger *m, int32_t friendnumber, const uint8_
491 return 0; 491 return 0;
492} 492}
493 493
494/* Send a text chat message to an online friend.
495 *
496 * return the message id if packet was successfully put into the send queue.
497 * return 0 if it was not.
498 */
499int m_sendmessage(Messenger *m, int32_t friendnumber, const uint8_t *message, uint32_t length, uint32_t *message_id) 494int m_sendmessage(Messenger *m, int32_t friendnumber, const uint8_t *message, uint32_t length, uint32_t *message_id)
500{ 495{
501 return send_message_generic(m, friendnumber, message, length, PACKET_ID_MESSAGE, message_id); 496 return send_message_generic(m, friendnumber, message, length, PACKET_ID_MESSAGE, message_id);
502} 497}
503 498
504/* Send an action to an online friend.
505 *
506 * return the message id if packet was successfully put into the send queue.
507 * return 0 if it was not.
508 */
509int m_sendaction(Messenger *m, int32_t friendnumber, const uint8_t *action, uint32_t length, uint32_t *message_id) 499int m_sendaction(Messenger *m, int32_t friendnumber, const uint8_t *action, uint32_t length, uint32_t *message_id)
510{ 500{
511 return send_message_generic(m, friendnumber, action, length, PACKET_ID_ACTION, message_id); 501 return send_message_generic(m, friendnumber, action, length, PACKET_ID_ACTION, message_id);