mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
MiRC2png.py:MiRC2png._syncColourSpecState(): handle empty mIRC colour control code sequences.
This commit is contained in:
parent
496e4c7a4b
commit
ba99dc1280
@ -209,6 +209,7 @@ class MiRC2png:
|
|||||||
# }}}
|
# }}}
|
||||||
# {{{ _syncColourSpecState(): XXX
|
# {{{ _syncColourSpecState(): XXX
|
||||||
def _syncColourSpecState(self, colourSpec):
|
def _syncColourSpecState(self, colourSpec):
|
||||||
|
if len(colourSpec) > 0:
|
||||||
colourSpec = colourSpec.split(",")
|
colourSpec = colourSpec.split(",")
|
||||||
if len(colourSpec) == 2:
|
if len(colourSpec) == 2:
|
||||||
self.outCurColourFg = int(colourSpec[0])
|
self.outCurColourFg = int(colourSpec[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user