Send custom ban reason on login

This commit is contained in:
ppeb 2025-03-21 19:05:50 -05:00
parent c740f07750
commit 043b41f89e
No known key found for this signature in database
GPG Key ID: CC147AD1B3D318D0

View File

@ -548,13 +548,13 @@ func (g *GameSpySession) performLoginWithDatabase(userId uint64, gsbrCode string
ErrorCode: ErrLogin.ErrorCode,
ErrorString: "The profile is banned from the service. Reason: " + user.BanReason,
Fatal: true,
WWFCMessage: WWFCMsgProfileBannedTOS,
WWFCMessage: WWFCMsgProfileRestrictedCustom,
Reason: user.BanReason,
})
} else {
g.replyError(GPError{
ErrorCode: ErrLogin.ErrorCode,
ErrorString: "There was an error logging in to the GP backend.",
ErrorString: "There was an error logging in to the GP backend. Reason: " + err.Error(),
Fatal: true,
WWFCMessage: WWFCMsgUnknownLoginError,
})