projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a59f85c
)
Show portnumber for ip adresses only
author
sapier
<Sapier at GMX dot net>
Mon, 22 Jul 2013 20:53:37 +0000
(22:53 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Thu, 25 Jul 2013 10:58:14 +0000
(12:58 +0200)
builtin/mainmenu.lua
patch
|
blob
|
history
diff --git
a/builtin/mainmenu.lua
b/builtin/mainmenu.lua
index 18e82f4998c37b1e89757ae1b457969d75f78dae..febf1984a352fd3510e896dcf8b58e0a5f77c1e6 100644
(file)
--- 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