mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:23:02 +01:00
Merge branch 'patch-6' of https://github.com/Astonex/ProjectTox-Core into pr
This commit is contained in:
commit
42028289c5
5
prompt.c
5
prompt.c
@ -122,6 +122,11 @@ void cmd_add(ToxWindow *self, Messenger *m, char **args)
|
|||||||
}
|
}
|
||||||
id_bin[i] = x;
|
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);
|
int num = m_addfriend(m, id_bin, (uint8_t*) msg, strlen(msg)+1);
|
||||||
switch (num) {
|
switch (num) {
|
||||||
case FAERR_TOOLONG:
|
case FAERR_TOOLONG:
|
||||||
|
Loading…
Reference in New Issue
Block a user