mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Add a way to set subscribed groups.
This commit is contained in:
parent
beffb89bda
commit
a0648d454c
5 changed files with 37 additions and 0 deletions
|
|
@ -502,6 +502,10 @@ bool IsUserInSource( CSteamID steamIDUser, CSteamID steamIDSource )
|
|||
if (settings->get_lobby() == steamIDSource) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (settings->subscribed_groups.find(steamIDSource.ConvertToUint64()) != settings->subscribed_groups.end()) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
Friend *f = find_friend(steamIDUser);
|
||||
if (!f) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue