Add a way to set subscribed groups.

This commit is contained in:
Mr_Goldberg 2020-06-20 21:15:26 -04:00
parent beffb89bda
commit a0648d454c
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
5 changed files with 37 additions and 0 deletions

View file

@ -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;