GPCM: Fix wrong session used in addFriend

This commit is contained in:
mkwcat 2024-03-12 05:40:17 -04:00
parent 820ed8a6ac
commit 28c65cc55a
No known key found for this signature in database
GPG Key ID: 7A505679CE9E7AA9
2 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,7 @@ func (g *GameSpySession) addFriend(command common.GameSpyCommand) {
g.sendFriendStatus(newSession.User.ProfileId)
}
g.sendFriendStatus(g.User.ProfileId)
newSession.sendFriendStatus(g.User.ProfileId)
}
func (g *GameSpySession) removeFriend(command common.GameSpyCommand) {

View File

@ -228,6 +228,8 @@ func (g *GameSpySession) bestieMessage(command common.GameSpyCommand) {
kickPlayer(g.User.ProfileId, resvError)
}
}
logging.Warn(g.ModuleName, "RESERVATION: Not allowed:", resvError)
// Otherwise generic error?
return
}