diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-07-01 12:31:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-01 12:31:28 +0200 |
commit | 6f22d14206824911b620ecec450689f84e6d278b (patch) | |
tree | fc639bddfc7e73e5479e6307d4e06039d94792fc /src | |
parent | 7d20ff47d7ce83825ccad81427fc8b45f80a2a2c (diff) | |
download | minetest-6f22d14206824911b620ecec450689f84e6d278b.tar.gz minetest-6f22d14206824911b620ecec450689f84e6d278b.tar.bz2 minetest-6f22d14206824911b620ecec450689f84e6d278b.zip |
Make the server status message customizable (#7357)
Remove now redundant setting show_statusline_on_connect
Improve documentation of `minetest.get_server_status`
Diffstat (limited to 'src')
-rw-r--r-- | src/defaultsettings.cpp | 1 | ||||
-rw-r--r-- | src/server.cpp | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 1d1da5128..8bcded9cd 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -305,7 +305,6 @@ 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("default_password", ""); settings->setDefault("default_privs", "interact, shout"); diff --git a/src/server.cpp b/src/server.cpp index 753c71701..38d2c5e94 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1059,11 +1059,6 @@ PlayerSAO* Server::StageTwoClientInit(session_t peer_id) // Send Breath SendPlayerBreath(playersao); - // Note things in chat if not in 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, ChatMessage(CHATMESSAGE_TYPE_SYSTEM, getStatusString())); - } Address addr = getPeerAddress(player->getPeerId()); std::string ip_str = addr.serializeString(); actionstream<<player->getName() <<" [" << ip_str << "] joins game. " << std::endl; |