mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-03-21 17:44:58 -05:00
GPCM: Fix incorrect open host key
This commit is contained in:
parent
2f113a13af
commit
ce130b0edc
|
|
@ -111,7 +111,7 @@ func GetUniqueUserID() uint64 {
|
|||
func (user *User) UpdateProfile(pool *pgxpool.Pool, ctx context.Context, data map[string]string) {
|
||||
firstName, firstNameExists := data["firstname"]
|
||||
lastName, lastNameExists := data["lastname"]
|
||||
openHost, openHostExists := data["open_host"]
|
||||
openHost, openHostExists := data["wwfc_openhost"]
|
||||
openHostBool := false
|
||||
if openHostExists && openHost != "0" {
|
||||
openHostBool = true
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ func (g *GameSpySession) getProfile(command common.GameSpyCommand) {
|
|||
}
|
||||
|
||||
func (g *GameSpySession) updateProfile(command common.GameSpyCommand) {
|
||||
if openHost, ok := command.OtherValues["open_host"]; ok {
|
||||
if openHost, ok := command.OtherValues["wwfc_openhost"]; ok {
|
||||
enabled := openHost != "0"
|
||||
if !g.User.OpenHost && enabled {
|
||||
g.openHostEnabled()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user