mirror of
https://github.com/erkin/ponysay
synced 2024-11-24 12:23:05 +00:00
gist: 4027002
This commit is contained in:
parent
ba8abaea53
commit
fb9f41794e
1 changed files with 5 additions and 3 deletions
|
@ -1847,10 +1847,12 @@ class Backend():
|
|||
if self.pony.startswith('$$$\n'):
|
||||
self.pony = self.pony[4:]
|
||||
if self.pony.startswith('$$$\n'):
|
||||
infoend = 0
|
||||
infoend = 4
|
||||
info = ''
|
||||
else:
|
||||
infoend = self.pony.index('\n$$$\n')
|
||||
info = self.pony[:infoend]
|
||||
info = self.pony[:infoend]
|
||||
infoend += 5
|
||||
if self.infolevel == 2:
|
||||
self.message = Backend.formatInfo(info)
|
||||
elif self.infolevel == 1:
|
||||
|
@ -1870,7 +1872,7 @@ class Backend():
|
|||
if len(value) > 0:
|
||||
self.balloonbottom = int(value)
|
||||
printinfo(info)
|
||||
self.pony = self.pony[infoend + 5:]
|
||||
self.pony = self.pony[infoend:]
|
||||
elif self.infolevel == 2:
|
||||
self.message = '\033[1;31mI am the mysterious mare...\033[21;3m'
|
||||
elif self.infolevel == 1:
|
||||
|
|
Loading…
Reference in a new issue