aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-01-21 19:30:42 +0100
committerGitHub <noreply@github.com>2017-01-21 19:30:42 +0100
commit6d5a40713347424084af8ba04e76278961506881 (patch)
tree30b9f000b57aa8e65d2b8a59fe004cb766ce2768 /src
parentbc29e03b597be350fa856b1ae3d8623778a808b3 (diff)
downloadminetest-6d5a40713347424084af8ba04e76278961506881.tar.gz
minetest-6d5a40713347424084af8ba04e76278961506881.tar.bz2
minetest-6d5a40713347424084af8ba04e76278961506881.zip
Add show_statusline_on_connect setting (#5084)
Add show_statusline_on_connect setting
Diffstat (limited to 'src')
-rw-r--r--src/defaultsettings.cpp1
-rw-r--r--src/server.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 59cfdd50d..e154a63c8 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -255,6 +255,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("motd", "");
settings->setDefault("max_users", "15");
settings->setDefault("creative_mode", "false");
+ settings->setDefault("show_statusline_on_connect", "true");
settings->setDefault("enable_damage", "true");
settings->setDefault("give_initial_stuff", "false");
settings->setDefault("default_password", "");
diff --git a/src/server.cpp b/src/server.cpp
index 1656b9f5a..7e1ab30ac 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1118,7 +1118,7 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
SendDeathscreen(peer_id, false, v3f(0,0,0));
// Note things in chat if not in simple singleplayer mode
- if(!m_simple_singleplayer_mode) {
+ if (!m_simple_singleplayer_mode && g_settings->getBool("show_statusline_on_connect")) {
// Send information about server to player in chat
SendChatMessage(peer_id, getStatusString());
}