GPCM: Kick restricted users on searching

This commit is contained in:
mkwcat 2024-01-10 21:31:23 -05:00
parent 809a258b7a
commit dce3f9962e
No known key found for this signature in database
GPG Key ID: 7A505679CE9E7AA9

View File

@ -264,6 +264,12 @@ func (g *GameSpySession) setStatus(command common.GameSpyCommand) {
mutex.Lock()
defer mutex.Unlock()
if status == "3" && g.User.Restricted {
logging.Warn(g.ModuleName, "Restricted user searching for public rooms")
kickPlayer(g.User.ProfileId, "restricted_join")
}
g.LocString = locstring
g.Status = statusMsg