summaryrefslogtreecommitdiff
path: root/src/progs
diff options
context:
space:
mode:
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())
{