summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-17 13:57:18 +0200
committerMattes D <github@xoft.cz>2014-10-17 13:57:18 +0200
commit687752241f97599c932ab30da449d7b9dec632c4 (patch)
tree253843f8f45b7e3719324ed72dd31977984d663f /src/Server.cpp
parentLuaChunkStay: Fixed a crash on unused callback. (diff)
downloadcuberite-687752241f97599c932ab30da449d7b9dec632c4.tar
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.gz
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.bz2
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.lz
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.xz
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.zst
cuberite-687752241f97599c932ab30da449d7b9dec632c4.zip
Diffstat (limited to '')
-rw-r--r--src/Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 62f6ba35a..8e5755a75 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -196,7 +196,7 @@ void cServer::PlayerDestroying(const cPlayer * a_Player)
-bool cServer::InitServer(cIniFile & a_SettingsIni)
+bool cServer::InitServer(cIniFile & a_SettingsIni, bool a_ShouldAuth)
{
m_Description = a_SettingsIni.GetValueSet("Server", "Description", "MCServer - in C++!");
m_MaxPlayers = a_SettingsIni.GetValueSetI("Server", "MaxPlayers", 100);
@@ -247,7 +247,7 @@ bool cServer::InitServer(cIniFile & a_SettingsIni)
m_bIsConnected = true;
m_ServerID = "-";
- m_ShouldAuthenticate = a_SettingsIni.GetValueSetB("Authentication", "Authenticate", true);
+ m_ShouldAuthenticate = a_ShouldAuth;
if (m_ShouldAuthenticate)
{
MTRand mtrand1;