aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-07-22 22:53:37 +0200
committerPilzAdam <pilzadam@minetest.net>2013-07-25 12:58:14 +0200
commit215e37aac3c0efb1a5b4a59bcd20a18632c59051 (patch)
treee3f5f12ca45576651e68b4517c132ad0fab39a55 /builtin
parenta59f85c1a037ddda775c02f42a66de1ed23d75a6 (diff)
downloadminetest-215e37aac3c0efb1a5b4a59bcd20a18632c59051.tar.gz
minetest-215e37aac3c0efb1a5b4a59bcd20a18632c59051.tar.bz2
minetest-215e37aac3c0efb1a5b4a59bcd20a18632c59051.zip
Show portnumber for ip adresses only
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index 18e82f499..febf1984a 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