Adding code for private chat messages (server side). These messages are not allowed within a game. Adding config option to disable brute force protection.

This commit is contained in:
lotodore
2010-11-07 08:24:31 +00:00
parent 6b179cd8ca
commit 0cb1d75ce3
7 changed files with 106 additions and 41 deletions
+8
View File
@@ -379,6 +379,14 @@ void Session::sendLobbyChatMessage(const std::string &message)
myNetClient->SendLobbyChatMessage(message);
}
void Session::sendPrivateChatMessage(unsigned targetPlayerId, const std::string &message)
{
if (!myNetClient)
return;
myNetClient->SendPrivateChatMessage(targetPlayerId, message);
}
void Session::kickPlayer(unsigned playerId)
{
if (!myNetClient)