mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-09-14 19:45:54 -05:00
GPCM: Kick restricted users on searching
This commit is contained in:
@@ -264,6 +264,12 @@ func (g *GameSpySession) setStatus(command common.GameSpyCommand) {
|
|||||||
|
|
||||||
mutex.Lock()
|
mutex.Lock()
|
||||||
defer mutex.Unlock()
|
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.LocString = locstring
|
||||||
g.Status = statusMsg
|
g.Status = statusMsg
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user