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,6 +254,7 @@ def showDetail(BBS):
if ch == 'Q': if ch == 'Q':
canend = "yes" canend = "yes"
if ch == 'C': if ch == 'C':
if address and "Private" not in address:
write('|SS'); write('|CL') write('|SS'); write('|CL')
menucmd('IT','/addr='+address+' /port='+str(port)) menucmd('IT','/addr='+address+' /port='+str(port))
write('[0;26 D'); write('|RS') write('[0;26 D'); write('|RS')