Add new commands

This commit is contained in:
SilicaAndPina 2021-06-28 17:49:31 +12:00
parent 13de417f2d
commit d74c9ca816
3 changed files with 42 additions and 3 deletions

View file

@ -7430,6 +7430,20 @@ namespace HISP.Server
}
return count;
}
public static int GetNumberOfBuddiesOnline(User user)
{
int total = 0;
foreach(int bud in user.Friends.List.ToArray())
{
if (IsUserOnline(bud))
{
total++;
}
}
return total;
}
public static int GetNumberOfAdminsOnline()
{
int count = 0;