Reset avatar if blacklisted (do not show error message yet).
This commit is contained in:
@@ -1570,7 +1570,14 @@ void
|
|||||||
ServerLobbyThread::AvatarBlacklisted(unsigned playerId)
|
ServerLobbyThread::AvatarBlacklisted(unsigned playerId)
|
||||||
{
|
{
|
||||||
// TODO use proper error code.
|
// TODO use proper error code.
|
||||||
SessionError(m_sessionManager.GetSessionByUniquePlayerId(playerId, true), ERR_NET_AVATAR_TOO_LARGE);
|
//SessionError(m_sessionManager.GetSessionByUniquePlayerId(playerId, true), ERR_NET_AVATAR_TOO_LARGE);
|
||||||
|
|
||||||
|
SessionWrapper tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerId, true);
|
||||||
|
if (tmpSession.sessionData && tmpSession.playerData)
|
||||||
|
{
|
||||||
|
tmpSession.playerData->SetAvatarMD5(MD5Buf()); // Reset avatar if blacklisted.
|
||||||
|
InitAfterLogin(tmpSession);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user