Fixed a non-functioning MXP call using the |-style format.

This commit is contained in:
Griatch 2016-04-02 15:20:40 +02:00
parent 5f0ba55ce1
commit 8709ffefb8
2 changed files with 3 additions and 2 deletions

View file

@ -17,6 +17,7 @@ from builtins import object
import re
LINKS_SUB = re.compile(r'\{lc(.*?)\{lt(.*?)\{le', re.DOTALL)
LINKS_SUB2 = re.compile(r'\|lc(.*?)\|lt(.*?)\|le', re.DOTALL)
MXP = "\x5B"
MXP_TEMPSECURE = "\x1B[4z"
@ -42,6 +43,7 @@ def mxp_parse(text):
.replace(">", ">")
text = LINKS_SUB.sub(MXP_SEND, text)
text = LINKS_SUB2.sub(MXP_SEND, text)
return text
class Mxp(object):