From 2ba5a938c150b5a8ea7ed822692e36ed57cc451c Mon Sep 17 00:00:00 2001 From: Rushfan Date: Wed, 9 Oct 2024 20:34:03 -0700 Subject: [PATCH] Fix typo that was causing the oneliners.bas script to fail. Fixes #1621 --- install/scripts/oneliners.bas | 66 +++++++++++++++++------------------ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/install/scripts/oneliners.bas b/install/scripts/oneliners.bas index 4194029e9..cb31b1809 100644 --- a/install/scripts/oneliners.bas +++ b/install/scripts/oneliners.bas @@ -44,45 +44,45 @@ def PipeColor(c) enddef def EnterOneLiner() -outstr("|15 1:White|01 2:DkBlue|10 3:Green|12 4:Red|13 5:Purple|07 6:Gray|11 7:Cyan|14 8:Yellow|09 9:Blue") -nl() -outstr("What Color? ") + outstr("|15 1:White|01 2:DkBlue|10 3:Green|12 4:Red|13 5:Purple|07 6:Gray|11 7:Cyan|14 8:Yellow|09 9:Blue") + nl() + outstr("What Color? ") -color = getkey() -nl() -colorcode = ASC(LEFT(color, 1)) - ASC("0") -pipecode = PipeColor(colorcode) -outstr("|10Enter Your One Liner:") -nl() -outstr("|#9: ") -s = gets(72) + color = getkey() + nl() + colorcode = ASC(LEFT(color, 1)) - ASC("0") + pipecode = PipeColor(colorcode) + outstr("|10Enter Your One Liner:") + nl() + outstr("|#9: ") + s = gets(72) -wwiv.io.outstr("|10Anonymous? ") -an = wwiv.io.ny() -If an Then -name = "Anonymous" -Else -namepart = wwiv.interpret("N") -number = wwiv.interpret("#") -name = namepart + " #" + number -End If -Return pipecode + name + " - " + s + wwiv.io.outstr("|10Anonymous? ") + an = wwiv.io.ny() + If an Then + name = "Anonymous" + Else + namepart = wwiv.interpret("N") + number = wwiv.interpret("#") + name = namepart + " #" + number + EndIf + Return pipecode + name + " - " + s Enddef def Main() -l = list() -wwiv.data.load("GLOBAL", l) -done = False -cls() -While True -wwiv.io.printfile("oneliner"); - PrintList(l) -nl() -outstr("|#9Would you like to add an oneliner? ") + l = list() + wwiv.data.load("GLOBAL", l) + done = False + cls() + While True + wwiv.io.printfile("oneliner"); + PrintList(l) + nl() + outstr("|#9Would you like to add an oneliner? ") -If Not yn() Then - Return - EndIf + If Not yn() Then + Return + EndIf s = EnterOneLiner() If len(l) > 10 Then Remove(l, 0)