1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-13 02:43:02 +01:00

api changed return on function

This commit is contained in:
Jfreegman 2013-09-09 06:54:36 -04:00
parent 1b5bcb4ffa
commit 4fc063d5fe

View File

@ -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;