mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed a build error due to the removal of getnumfriends()
This commit is contained in:
parent
eba7fdb9ba
commit
563c2b3157
|
@ -151,21 +151,6 @@ void line_eval(char* line)
|
||||||
else if (inpt_command == 'l') {
|
else if (inpt_command == 'l') {
|
||||||
int activefriends = 0;
|
int activefriends = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i <= getnumfriends(); i++)
|
|
||||||
{
|
|
||||||
if (m_friendstatus(i) == 4)
|
|
||||||
activefriends++;
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("\n[i] Friend List | Total: %d\n\n", activefriends);
|
|
||||||
|
|
||||||
for (i = 0; i <= getnumfriends(); i++) {
|
|
||||||
char name[MAX_NAME_LENGTH];
|
|
||||||
getname(i, (uint8_t*)name);
|
|
||||||
if (m_friendstatus(i) == 4)
|
|
||||||
printf("[%d] %s\n\n", i, (uint8_t*)name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (inpt_command == 'd') {
|
else if (inpt_command == 'd') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user