mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #269 from ragesalmon/master
Fixed a build error due to the removal of getnumfriends()
This commit is contained in:
commit
85324e07a0
|
@ -151,21 +151,6 @@ void line_eval(char* line)
|
|||
else if (inpt_command == 'l') {
|
||||
int activefriends = 0;
|
||||
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') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user