Skip to content

Commit

Permalink
Fix typo that was causing the oneliners.bas script to fail.
Browse files Browse the repository at this point in the history
Fixes #1621
  • Loading branch information
wwiv committed Oct 10, 2024
1 parent b50a0bb commit 2ba5a93
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions install/scripts/oneliners.bas
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ba5a93

Please sign in to comment.