summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorpranomostro <pranomestro@gmail.com>2017-03-03 15:12:01 +0100
committerpranomostro <pranomestro@gmail.com>2017-03-03 15:12:01 +0100
commite8f046c0e616a7a0b10d1bb85abe887c1a374179 (patch)
tree837e2fe69e2b8fd9979192782993f7550c8f8383 /ratox.c
parent0cf60b85c697629f834ea20c7c22011359bb3850 (diff)
Now aborting when invited to audio conferences.
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index d7d683d..27487de 100644
--- a/ratox.c
+++ b/ratox.c
@@ -492,8 +492,13 @@ cbconfinvite(Tox *m, uint32_t frnum, TOX_CONFERENCE_TYPE type, const uint8_t *co
struct invite *inv;
uint8_t id[TOX_PUBLIC_KEY_SIZE];
+ if(type != TOX_CONFERENCE_TYPE_TEXT) {
+ weprintf(": %d : Only text conference supported at the moment\n");
+ return;
+ }
+
if (!tox_friend_get_public_key(tox, frnum, id, NULL)) {
- weprintf(": %d: Key: Failed to get for invite\n", frnum);
+ weprintf(": %d : Key: Failed to get for invite\n", frnum);
return;
}