summaryrefslogtreecommitdiff
path: root/src/progs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-22 19:18:19 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-22 19:18:19 +0300
commit069ef2445ddf4f8ab1392f8e559ef258b315e92d (patch)
tree0d9e19f68ff7b0cc721ed1addc080c9d10e11530 /src/progs
parent172afd4cd9e7284741904424f5e567564a218210 (diff)
downloadmv-069ef2445ddf4f8ab1392f8e559ef258b315e92d.tar.gz
mv-069ef2445ddf4f8ab1392f8e559ef258b315e92d.tar.bz2
mv-069ef2445ddf4f8ab1392f8e559ef258b315e92d.tar.xz
mv-069ef2445ddf4f8ab1392f8e559ef258b315e92d.zip
Add configure option for enable/disable accepting password from command line.
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/manaplus/client.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp
index 1ee563bac..22d2bc483 100644
--- a/src/progs/manaplus/client.cpp
+++ b/src/progs/manaplus/client.cpp
@@ -301,6 +301,14 @@ void Client::gameInit()
Dirs::initRootDir();
Dirs::initHomeDir();
+#ifndef ENABLE_COMMANDLINEPASSWORD
+ if (!settings.options.password.empty())
+ {
+ settings.options.password = std::string();
+ logger->log("Command line password parameter disabled.");
+ }
+#endif
+
// Configure logger
if (!settings.options.logFileName.empty())
{