diff options
author | Astonex <softukitu@gmail.com> | 2013-07-30 00:05:51 +0100 |
---|---|---|
committer | Astonex <softukitu@gmail.com> | 2013-07-30 00:05:51 +0100 |
commit | 7e973c8cac08acb5724b5e1f462faf539b647a8f (patch) | |
tree | 7b0544a92dc4c3f53b9a2f7616147d0d419e2c19 /testing/nTox_win32.c | |
parent | 0cd561ee48a5593264392b47ab1c4bcda87d8348 (diff) |
Some changes so the user's ID gets displayed
Diffstat (limited to 'testing/nTox_win32.c')
-rw-r--r-- | testing/nTox_win32.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/testing/nTox_win32.c b/testing/nTox_win32.c index 340e0cb4..6e71a436 100644 --- a/testing/nTox_win32.c +++ b/testing/nTox_win32.c | |||
@@ -31,8 +31,6 @@ char line[STRING_LENGTH]; | |||
31 | 31 | ||
32 | void do_header() | 32 | void do_header() |
33 | { | 33 | { |
34 | system("cls"); | ||
35 | |||
36 | printf("\n[i] commands: /f ID (to add friend), /m friendnumber message (to send message), /s status (to change status), /n nick (to change nickname), /q (to quit)\n\n"); | 34 | printf("\n[i] commands: /f ID (to add friend), /m friendnumber message (to send message), /s status (to change status), /n nick (to change nickname), /q (to quit)\n\n"); |
37 | } | 35 | } |
38 | 36 | ||
@@ -148,7 +146,7 @@ void line_eval(char* line) | |||
148 | } | 146 | } |
149 | int num = atoi(numstring); | 147 | int num = atoi(numstring); |
150 | if(m_sendmessage(num, (uint8_t*) message, sizeof(message)) != 1) { | 148 | if(m_sendmessage(num, (uint8_t*) message, sizeof(message)) != 1) { |
151 | printf("\n[i] could not send message\n\n"); | 149 | printf("\n[i] could not send message: %s\n\n", message); |
152 | } | 150 | } |
153 | } | 151 | } |
154 | 152 | ||
@@ -228,6 +226,8 @@ int main(int argc, char *argv[]) | |||
228 | m_callback_namechange(print_nickchange); | 226 | m_callback_namechange(print_nickchange); |
229 | m_callback_userstatus(print_statuschange); | 227 | m_callback_userstatus(print_statuschange); |
230 | 228 | ||
229 | system("cls"); | ||
230 | |||
231 | char idstring0[200]; | 231 | char idstring0[200]; |
232 | char idstring1[32][5]; | 232 | char idstring1[32][5]; |
233 | char idstring2[32][5]; | 233 | char idstring2[32][5]; |
@@ -246,7 +246,9 @@ int main(int argc, char *argv[]) | |||
246 | strcat(idstring0,idstring2[i]); | 246 | strcat(idstring0,idstring2[i]); |
247 | } | 247 | } |
248 | 248 | ||
249 | printf(idstring0); | ||
249 | do_header(); | 250 | do_header(); |
251 | |||
250 | 252 | ||
251 | IP_Port bootstrap_ip_port; | 253 | IP_Port bootstrap_ip_port; |
252 | bootstrap_ip_port.port = htons(atoi(argv[2])); | 254 | bootstrap_ip_port.port = htons(atoi(argv[2])); |