catch if bbs has no address or is private, don't try and connect

This commit is contained in:
MeaTLoTioN 2022-05-21 13:34:15 +01:00
parent 8aee06371d
commit 754114d610

View File

@ -12,9 +12,9 @@ screenWidth = 80
screenDepth = 24 screenDepth = 24
AUTHOR = "MeaTLoTioN" AUTHOR = "MeaTLoTioN"
cRESET = "|16|07" cRESET = "|16|07"
hBG = "|20" hBG = "|19"
hFG = "|14" hFG = "|14"
fBG = "|20" fBG = "|19"
fFG = "|14" fFG = "|14"
barOffset = 1 barOffset = 1
highlightedBBS = "" highlightedBBS = ""
@ -254,9 +254,10 @@ def showDetail(BBS):
if ch == 'Q': if ch == 'Q':
canend = "yes" canend = "yes"
if ch == 'C': if ch == 'C':
write('|SS'); write('|CL') if address and "Private" not in address:
menucmd('IT','/addr='+address+' /port='+str(port)) write('|SS'); write('|CL')
write('[0;26 D'); write('|RS') menucmd('IT','/addr='+address+' /port='+str(port))
write('[0;26 D'); write('|RS')
if ch == KEY_LEFT: if ch == KEY_LEFT:
if rating > 0: if rating > 0:
rating -= 1 rating -= 1