Adding callback if user is blocked by the server.

This commit is contained in:
lotodore
2010-07-14 14:30:16 +00:00
parent c25c52250d
commit 18613a2cb5
4 changed files with 16 additions and 1 deletions
+11
View File
@@ -123,6 +123,11 @@ public:
m_server.UserInvalid(requestId);
}
virtual void PlayerLoginBlocked(unsigned requestId)
{
m_server.UserBlocked(requestId);
}
virtual void CreateGameSuccess(unsigned requestId, DB_id gameId)
{
m_server.SetGameDBId((u_int32_t)requestId, gameId);
@@ -1509,6 +1514,12 @@ ServerLobbyThread::UserInvalid(unsigned playerId)
SessionError(m_sessionManager.GetSessionByUniquePlayerId(playerId, true), ERR_NET_INVALID_PASSWORD);
}
void
ServerLobbyThread::UserBlocked(unsigned playerId)
{
SessionError(m_sessionManager.GetSessionByUniquePlayerId(playerId, true), ERR_NET_PLAYER_BANNED);
}
void
ServerLobbyThread::RequestPlayerAvatar(SessionWrapper session)
{