mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-07 21:46:42 +01: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'):
|
if self.pony.startswith('$$$\n'):
|
||||||
self.pony = self.pony[4:]
|
self.pony = self.pony[4:]
|
||||||
if self.pony.startswith('$$$\n'):
|
if self.pony.startswith('$$$\n'):
|
||||||
infoend = 0
|
infoend = 4
|
||||||
|
info = ''
|
||||||
else:
|
else:
|
||||||
infoend = self.pony.index('\n$$$\n')
|
infoend = self.pony.index('\n$$$\n')
|
||||||
info = self.pony[:infoend]
|
info = self.pony[:infoend]
|
||||||
|
infoend += 5
|
||||||
if self.infolevel == 2:
|
if self.infolevel == 2:
|
||||||
self.message = Backend.formatInfo(info)
|
self.message = Backend.formatInfo(info)
|
||||||
elif self.infolevel == 1:
|
elif self.infolevel == 1:
|
||||||
|
@ -1870,7 +1872,7 @@ class Backend():
|
||||||
if len(value) > 0:
|
if len(value) > 0:
|
||||||
self.balloonbottom = int(value)
|
self.balloonbottom = int(value)
|
||||||
printinfo(info)
|
printinfo(info)
|
||||||
self.pony = self.pony[infoend + 5:]
|
self.pony = self.pony[infoend:]
|
||||||
elif self.infolevel == 2:
|
elif self.infolevel == 2:
|
||||||
self.message = '\033[1;31mI am the mysterious mare...\033[21;3m'
|
self.message = '\033[1;31mI am the mysterious mare...\033[21;3m'
|
||||||
elif self.infolevel == 1:
|
elif self.infolevel == 1:
|
||||||
|
|
Loading…
Reference in a new issue