mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 01:13:01 +01:00
api changed return on function
This commit is contained in:
parent
1b5bcb4ffa
commit
4fc063d5fe
@ -95,8 +95,8 @@ int friendlist_onFriendAdded(Tox *m, int num)
|
||||
friends[i].online = false;
|
||||
friends[i].status = TOX_USERSTATUS_NONE;
|
||||
|
||||
if (tox_getname(m, num, friends[i].name) != 0 || friends[i].name[0] == '\0')
|
||||
strcpy((char *) friends[i].name, "unknown");
|
||||
if (tox_getname(m, num, friends[i].name) == -1 || friends[i].name[0] == '\0')
|
||||
strcpy((char *) friends[i].name, UNKNOWN_NAME);
|
||||
|
||||
if (i == num_friends)
|
||||
++num_friends;
|
||||
|
Loading…
Reference in New Issue
Block a user