summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-28 23:53:07 +0100
committermadmaxoft <github@xoft.cz>2014-01-28 23:53:54 +0100
commitbc6fc859f4c245d17d3bbc2028d93b42b1232d01 (patch)
tree1637ddf7e0588ac7ef5c6fe9fd681601e8572f57 /src/Server.cpp
parentCrypto: Added public key encryption / decryption. (diff)
downloadcuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar
cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.gz
cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.bz2
cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.lz
cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.xz
cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.tar.zst
cuberite-bc6fc859f4c245d17d3bbc2028d93b42b1232d01.zip
Diffstat (limited to '')
-rw-r--r--src/Server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 3f9f8a4ac..ba2b46d55 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -237,7 +237,8 @@ bool cServer::InitServer(cIniFile & a_SettingsIni)
m_bIsConnected = true;
m_ServerID = "-";
- if (a_SettingsIni.GetValueSetB("Authentication", "Authenticate", true))
+ m_ShouldAuthenticate = a_SettingsIni.GetValueSetB("Authentication", "Authenticate", true);
+ if (m_ShouldAuthenticate)
{
MTRand mtrand1;
unsigned int r1 = (mtrand1.randInt() % 1147483647) + 1000000000;