GPCM: Fix incorrect open host key

This commit is contained in:
mkwcat 2024-03-09 23:02:55 -05:00
parent 2f113a13af
commit ce130b0edc
No known key found for this signature in database
GPG Key ID: 7A505679CE9E7AA9
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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()