diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-05-22 19:18:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-05-22 19:18:19 +0300 |
commit | 069ef2445ddf4f8ab1392f8e559ef258b315e92d (patch) | |
tree | 0d9e19f68ff7b0cc721ed1addc080c9d10e11530 /src/progs | |
parent | 172afd4cd9e7284741904424f5e567564a218210 (diff) | |
download | mv-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.cpp | 8 |
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()) { |