mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Update prompt.c
Make id uppercase.
This commit is contained in:
parent
a8d1f86f8b
commit
1260aee9e1
@ -121,6 +121,11 @@ void cmd_add(ToxWindow *self, Messenger *m, char **args)
|
||||
}
|
||||
id_bin[i] = x;
|
||||
}
|
||||
|
||||
for (i = 0; i < FRIEND_ADDRESS_SIZE; i++) {
|
||||
id[i] = toupper(id[i]);
|
||||
}
|
||||
|
||||
int num = m_addfriend(m, id_bin, (uint8_t*) msg, strlen(msg)+1);
|
||||
switch (num) {
|
||||
case FAERR_TOOLONG:
|
||||
|
Loading…
x
Reference in New Issue
Block a user