diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nTox.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index 52d1bfd1..630c5f8e 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -145,19 +145,19 @@ void line_eval(char *line) | |||
145 | int num = m_addfriend(hex_string_to_bin(temp_id), (uint8_t*)"Install Gentoo", sizeof("Install Gentoo")); | 145 | int num = m_addfriend(hex_string_to_bin(temp_id), (uint8_t*)"Install Gentoo", sizeof("Install Gentoo")); |
146 | char numstring[100]; | 146 | char numstring[100]; |
147 | switch (num) { | 147 | switch (num) { |
148 | case -1: | 148 | case FAERR_TOOLONG: |
149 | sprintf(numstring, "[i] Message is too long."); | 149 | sprintf(numstring, "[i] Message is too long."); |
150 | break; | 150 | break; |
151 | case -2: | 151 | case FAERR_NOMESSAGE: |
152 | sprintf(numstring, "[i] Please add a message to your request."); | 152 | sprintf(numstring, "[i] Please add a message to your request."); |
153 | break; | 153 | break; |
154 | case -3: | 154 | case FAERR_OWNKEY: |
155 | sprintf(numstring, "[i] That appears to be your own ID."); | 155 | sprintf(numstring, "[i] That appears to be your own ID."); |
156 | break; | 156 | break; |
157 | case -4: | 157 | case FAERR_ALREADYSENT: |
158 | sprintf(numstring, "[i] Friend request already sent."); | 158 | sprintf(numstring, "[i] Friend request already sent."); |
159 | break; | 159 | break; |
160 | case -5: | 160 | case FAERR_UNKNOWN: |
161 | sprintf(numstring, "[i] Undefined error when adding friend."); | 161 | sprintf(numstring, "[i] Undefined error when adding friend."); |
162 | break; | 162 | break; |
163 | default: | 163 | default: |