Show portnumber for ip adresses only

This commit is contained in:
sapier 2013-07-22 22:53:37 +02:00 committed by PilzAdam
parent a59f85c1a0
commit 215e37aac3
1 changed files with 4 additions and 6 deletions

View File

@ -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