summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index 1e149a5c..c07473dd 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -463,7 +463,23 @@ void tox_callback_connection_status(Tox *tox, void (*function)(Messenger *tox, i
463 m_callback_connectionstatus(m, function, userdata); 463 m_callback_connectionstatus(m, function, userdata);
464} 464}
465 465
466/**********GROUP CHAT FUNCTIONS: WARNING WILL BREAK A LOT************/ 466/**********ADVANCED FUNCTIONS (If you don't know what they do you can safely ignore them.) ************/
467
468/* Functions to get/set the nospam part of the id.
469 */
470uint32_t tox_get_nospam(Tox *tox)
471{
472 Messenger *m = tox;
473 return get_nospam(&(m->fr));
474}
475
476void tox_set_nospam(Tox *tox, uint32_t nospam)
477{
478 Messenger *m = tox;
479 set_nospam(&(m->fr), nospam);
480}
481
482/**********GROUP CHAT FUNCTIONS: WARNING Group chats will be rewritten so this might change ************/
467 483
468/* Set the callback for group invites. 484/* Set the callback for group invites.
469 * 485 *