From 754114d610569060f7eb232ac969f354055d137d Mon Sep 17 00:00:00 2001 From: MeaTLoTioN Date: Sat, 21 May 2022 13:34:15 +0100 Subject: [PATCH] catch if bbs has no address or is private, don't try and connect --- mL-nlparse.mpy | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mL-nlparse.mpy b/mL-nlparse.mpy index 3c8eb57..86d3816 100755 --- a/mL-nlparse.mpy +++ b/mL-nlparse.mpy @@ -12,9 +12,9 @@ screenWidth = 80 screenDepth = 24 AUTHOR = "MeaTLoTioN" cRESET = "|16|07" -hBG = "|20" +hBG = "|19" hFG = "|14" -fBG = "|20" +fBG = "|19" fFG = "|14" barOffset = 1 highlightedBBS = "" @@ -254,9 +254,10 @@ def showDetail(BBS): if ch == 'Q': canend = "yes" if ch == 'C': - write('|SS'); write('|CL') - menucmd('IT','/addr='+address+' /port='+str(port)) - write('[0;26 D'); write('|RS') + if address and "Private" not in address: + write('|SS'); write('|CL') + menucmd('IT','/addr='+address+' /port='+str(port)) + write('[0;26 D'); write('|RS') if ch == KEY_LEFT: if rating > 0: rating -= 1