mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-08-06 02:18:37 -05:00
GPCM: Send friend auth message on open host enable
This commit is contained in:
parent
ce130b0edc
commit
c28003444e
|
|
@ -320,6 +320,7 @@ func (g *GameSpySession) openHostEnabled() {
|
|||
if session.LoggedIn && session.isFriendAdded(g.User.ProfileId) && !session.isFriendAuthorized(g.User.ProfileId) {
|
||||
session.AuthFriendList = append(session.AuthFriendList, g.User.ProfileId)
|
||||
g.AuthFriendList = append(g.AuthFriendList, session.User.ProfileId)
|
||||
sendMessageToSession("4", g.User.ProfileId, session, "")
|
||||
session.exchangeFriendStatus(g.User.ProfileId)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ func (g *GameSpySession) bestieMessage(command common.GameSpyCommand) {
|
|||
if toSession, ok = sessions[uint32(toProfileId)]; !ok || !toSession.LoggedIn {
|
||||
logging.Error(g.ModuleName, "Destination", aurora.Cyan(toProfileId), "is not online")
|
||||
// g.replyError(ErrMessageFriendOffline)
|
||||
sendMessageToSession("1", uint32(toProfileId), g, resvDenyMsg)
|
||||
sendMessageToSessionBuffer("1", uint32(toProfileId), g, resvDenyMsg)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -200,7 +200,7 @@ func (g *GameSpySession) bestieMessage(command common.GameSpyCommand) {
|
|||
|
||||
if !toSession.DeviceAuthenticated {
|
||||
logging.Error(g.ModuleName, "Destination", aurora.Cyan(toProfileId), "is not device authenticated")
|
||||
sendMessageToSession("1", uint32(toProfileId), g, resvDenyMsg)
|
||||
sendMessageToSessionBuffer("1", uint32(toProfileId), g, resvDenyMsg)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user