From: sapier Date: Mon, 22 Jul 2013 20:53:37 +0000 (+0200) Subject: Show portnumber for ip adresses only X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=215e37aac3c0efb1a5b4a59bcd20a18632c59051;p=zefram%2Fminetest%2Fminetest_engine.git Show portnumber for ip adresses only --- diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua index 18e82f49..febf1984 100644 --- a/builtin/mainmenu.lua +++ b/builtin/mainmenu.lua @@ -34,15 +34,13 @@ function menu.render_favorite(spec,render_details) else if spec.address ~= nil then text = text .. spec.address:trim() + + if spec.port ~= nil then + text = text .. ":" .. spec.port + end end end - if spec.port ~= nil and - spec.port ~= 30000 then - - text = text .. ":" .. spec.port - end - if not render_details then return text end