mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
Add new commands
This commit is contained in:
parent
13de417f2d
commit
d74c9ca816
3 changed files with 42 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue