limitrank - draft with return false always

This commit is contained in:
Kai Philipp
2019-09-09 19:21:15 +02:00
parent add886ebee
commit e18e459434
5 changed files with 70 additions and 3 deletions
+16
View File
@@ -38,6 +38,8 @@
#include <net/websocketdata.h>
#include <gsasl.h>
// #include <ctime> // @TODO: remove if really not necessary
using namespace std;
using boost::asio::ip::tcp;
@@ -398,6 +400,20 @@ SessionData::GetPlayerData()
return m_playerData;
}
void
SessionData::SetPlayerLastGames(std::array<std::time_t> lastGames)
{
boost::mutex::scoped_lock lock(m_dataMutex);
m_lastGames = player;
}
std::array<std::time_t>
SessionData::GetPlayerLastGames()
{
boost::mutex::scoped_lock lock(m_dataMutex);
return m_lastGames;
}
string
SessionData::GetRemoteIPAddressFromSocket() const
{