mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-07-14 23:50:54 -05:00
GPCM: Kick restricted users on searching
This commit is contained in:
parent
809a258b7a
commit
dce3f9962e
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user