mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-08-13 12:25:41 -05:00
GPCM: Fix wrong session used in addFriend
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user