summaryrefslogtreecommitdiffstats
path: root/src/WebAdmin.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-30 17:37:25 +0200
committermadmaxoft <github@xoft.cz>2014-04-30 17:37:25 +0200
commitab2dfb44faf94fcae4b9ca2af13aa14035e96a97 (patch)
treefca84db27baf0cf753443e7af5505777db1f06ed /src/WebAdmin.cpp
parentFixed a warning when an empty item is being created. (diff)
downloadcuberite-ab2dfb44faf94fcae4b9ca2af13aa14035e96a97.tar
cuberite-ab2dfb44faf94fcae4b9ca2af13aa14035e96a97.tar.gz
cuberite-ab2dfb44faf94fcae4b9ca2af13aa14035e96a97.tar.bz2
cuberite-ab2dfb44faf94fcae4b9ca2af13aa14035e96a97.tar.lz
cuberite-ab2dfb44faf94fcae4b9ca2af13aa14035e96a97.tar.xz
cuberite-ab2dfb44faf94fcae4b9ca2af13aa14035e96a97.tar.zst
cuberite-ab2dfb44faf94fcae4b9ca2af13aa14035e96a97.zip
Diffstat (limited to '')
-rw-r--r--src/WebAdmin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/WebAdmin.cpp b/src/WebAdmin.cpp
index 737705d7c..08e164d78 100644
--- a/src/WebAdmin.cpp
+++ b/src/WebAdmin.cpp
@@ -89,6 +89,7 @@ bool cWebAdmin::Init(void)
m_IniFile.AddHeaderComment(" Password format: Password=*password*; for example:");
m_IniFile.AddHeaderComment(" [User:admin]");
m_IniFile.AddHeaderComment(" Password=admin");
+ m_IniFile.WriteFile("webadmin.ini");
}
if (!m_IniFile.GetValueSetB("WebAdmin", "Enabled", true))