Skip to content
Permalink
Browse files

Show portnumber for ip adresses only

  • Loading branch information
sapier authored and PilzAdam committed Jul 25, 2013
1 parent a59f85c commit 215e37aac3c0efb1a5b4a59bcd20a18632c59051
Showing with 4 additions and 6 deletions.
  1. +4 −6 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

0 comments on commit 215e37a

Please sign in to comment.
You can’t perform that action at this time.