summaryrefslogtreecommitdiff
path: root/testing/nTox_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/nTox_win32.c')
-rw-r--r--testing/nTox_win32.c25
1 files changed, 6 insertions, 19 deletions
diff --git a/testing/nTox_win32.c b/testing/nTox_win32.c
index 2394877f..27fc6ff3 100644
--- a/testing/nTox_win32.c
+++ b/testing/nTox_win32.c
@@ -132,13 +132,15 @@ void line_eval(char* line)
132 printf(numstring); 132 printf(numstring);
133 } 133 }
134 else if (num == -1) 134 else if (num == -1)
135 printf("\nWrong key size\n\n"); 135 printf("\n[i] Message is too long.\n\n");
136 else if (num == -2) 136 else if (num == -2)
137 printf("\nYou can't add yourself\n\n"); 137 printf("\n[i] Please add a message to your friend request.\n\n");
138 else if (num == -3) 138 else if (num == -3)
139 printf("\nYou already have this person added\n\n"); 139 printf("\n[i] That appears to be your own ID.\n\n");
140 else if (num == -4) 140 else if (num == -4)
141 printf("\nUndefined error when adding friend"); 141 printf("\n[i] Friend request already sent.\n\n");
142 else if (num == -5)
143 printf("\n[i] Undefined error when adding friend\n\n");
142 } 144 }
143 145
144 else if (inpt_command == 'r') { 146 else if (inpt_command == 'r') {
@@ -149,21 +151,6 @@ void line_eval(char* line)
149 else if (inpt_command == 'l') { 151 else if (inpt_command == 'l') {
150 int activefriends = 0; 152 int activefriends = 0;
151 int i; 153 int i;
152
153 for (i = 0; i <= getnumfriends(); i++)
154 {
155 if (m_friendstatus(i) == 4)
156 activefriends++;
157 }
158
159 printf("\n[i] Friend List | Total: %d\n\n", activefriends);
160
161 for (i = 0; i <= getnumfriends(); i++) {
162 char name[MAX_NAME_LENGTH];
163 getname(i, (uint8_t*)name);
164 if (m_friendstatus(i) == 4)
165 printf("[%d] %s\n\n", i, (uint8_t*)name);
166 }
167 } 154 }
168 155
169 else if (inpt_command == 'd') { 156 else if (inpt_command == 'd') {