aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-07-12 21:56:42 +0200
committerPilzAdam <pilzadam@minetest.net>2013-07-12 22:46:27 +0200
commit38bc38cd88edd621c606abc4ca0b81d892da6592 (patch)
treec7836194482de57adf0c6f2d959161e86433dc95 /builtin
parent494fa0c81a7539627505b8f68107ae765bf016d8 (diff)
downloadminetest-38bc38cd88edd621c606abc4ca0b81d892da6592.tar.gz
minetest-38bc38cd88edd621c606abc4ca0b81d892da6592.tar.bz2
minetest-38bc38cd88edd621c606abc4ca0b81d892da6592.zip
Add missing server flags in public serverlist
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index ee3316117..4cc5bfaca 100644
--- a/builtin/mainmenu.lua
+++ b/builtin/mainmenu.lua
@@ -30,30 +30,31 @@ function render_favourite(spec)
local details = ""
if spec.password == true then
- details = " *"
+ details = details .. "*"
else
- details = " "
+ details = details .. "_"
end
if spec.creative then
details = details .. "C"
else
- details = details .. " "
+ details = details .. "_"
end
if spec.damage then
details = details .. "D"
else
- details = details .. " "
+ details = details .. "_"
end
if spec.pvp then
details = details .. "P"
else
- details = details .. " "
+ details = details .. "_"
end
+ details = details .. " "
- return text
+ return fs_escape_string(details) .. text
end
--------------------------------------------------------------------------------