Add missing server flags in public serverlist
authorsapier <Sapier at GMX dot net>
Fri, 12 Jul 2013 19:56:42 +0000 (21:56 +0200)
committerPilzAdam <pilzadam@minetest.net>
Fri, 12 Jul 2013 20:46:27 +0000 (22:46 +0200)
builtin/mainmenu.lua

index ee33161175b5964882fdc4718250558e5db33cf0..4cc5bfaca01a852ddb92800f25accf4883eadf0d 100644 (file)
@@ -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
 
 --------------------------------------------------------------------------------