Reset avatar if blacklisted (do not show error message yet).

This commit is contained in:
lotodore
2011-01-09 20:50:58 +00:00
parent 3974e7cac5
commit 19327d7076
+8 -1
View File
@@ -1570,7 +1570,14 @@ void
ServerLobbyThread::AvatarBlacklisted(unsigned playerId)
{
// 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