summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-03-18 17:14:57 -0400
committerirungentoo <irungentoo@gmail.com>2015-03-18 17:14:57 -0400
commite0bd6ef4e0e79804e36ae86b4f08f19c2ce93700 (patch)
treeef890981ac5242cc1d8bbaf15edc47d88045e3f8 /testing
parent45cf8a744c381b751262295177e636b9fbce7040 (diff)
Renamed TOX_MESSAGE_TYPE_MESSAGE to TOX_MESSAGE_TYPE_NORMAL.
Diffstat (limited to 'testing')
-rw-r--r--testing/nTox.c4
-rw-r--r--testing/tox_shell.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/testing/nTox.c b/testing/nTox.c
index 6b3bfd0d..3cb88edc 100644
--- a/testing/nTox.c
+++ b/testing/nTox.c
@@ -395,7 +395,7 @@ void line_eval(Tox *m, char *line)
395 int num = strtoul(line + prompt_offset, posi, 0); 395 int num = strtoul(line + prompt_offset, posi, 0);
396 396
397 if (**posi != 0) { 397 if (**posi != 0) {
398 if (tox_friend_send_message(m, num, TOX_MESSAGE_TYPE_MESSAGE, (uint8_t *) *posi + 1, strlen(*posi + 1), NULL) < 1) { 398 if (tox_friend_send_message(m, num, TOX_MESSAGE_TYPE_NORMAL, (uint8_t *) *posi + 1, strlen(*posi + 1), NULL) < 1) {
399 char sss[256]; 399 char sss[256];
400 sprintf(sss, "[i] could not send message to friend num %u", num); 400 sprintf(sss, "[i] could not send message to friend num %u", num);
401 new_lines(sss); 401 new_lines(sss);
@@ -607,7 +607,7 @@ void line_eval(Tox *m, char *line)
607 if (conversation_default != 0) { 607 if (conversation_default != 0) {
608 if (conversation_default > 0) { 608 if (conversation_default > 0) {
609 int friendnumber = conversation_default - 1; 609 int friendnumber = conversation_default - 1;
610 uint32_t res = tox_friend_send_message(m, friendnumber, TOX_MESSAGE_TYPE_MESSAGE, (uint8_t *)line, strlen(line), NULL); 610 uint32_t res = tox_friend_send_message(m, friendnumber, TOX_MESSAGE_TYPE_NORMAL, (uint8_t *)line, strlen(line), NULL);
611 611
612 if (res == 0) { 612 if (res == 0) {
613 char sss[128]; 613 char sss[128];
diff --git a/testing/tox_shell.c b/testing/tox_shell.c
index 64a0517d..23fa320a 100644
--- a/testing/tox_shell.c
+++ b/testing/tox_shell.c
@@ -149,7 +149,7 @@ int main(int argc, char *argv[])
149 if (ret <= 0) 149 if (ret <= 0)
150 break; 150 break;
151 151
152 tox_friend_send_message(tox, num, TOX_MESSAGE_TYPE_MESSAGE, buf, ret, 0); 152 tox_friend_send_message(tox, num, TOX_MESSAGE_TYPE_NORMAL, buf, ret, 0);
153 } 153 }
154 154
155 tox_iterate(tox); 155 tox_iterate(tox);