Fix a crash in the marquee plugin
xml does not like ascii control chars.
This commit is contained in:
parent
216ca997ad
commit
65a37c44dd
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,7 @@ Configuration
|
||||||
"""
|
"""
|
||||||
from plugin import BasePlugin
|
from plugin import BasePlugin
|
||||||
import tabs
|
import tabs
|
||||||
|
import xhtml
|
||||||
from decorators import command_args_parser
|
from decorators import command_args_parser
|
||||||
|
|
||||||
def move(text, step, spacing):
|
def move(text, step, spacing):
|
||||||
|
@ -53,6 +54,7 @@ class Plugin(BasePlugin):
|
||||||
@command_args_parser.raw
|
@command_args_parser.raw
|
||||||
def command_marquee(self, args):
|
def command_marquee(self, args):
|
||||||
tab = self.api.current_tab()
|
tab = self.api.current_tab()
|
||||||
|
args = xhtml.clean_text(xhtml.convert_simple_to_full_colors(args))
|
||||||
tab.command_say(args)
|
tab.command_say(args)
|
||||||
is_muctab = isinstance(tab, tabs.MucTab)
|
is_muctab = isinstance(tab, tabs.MucTab)
|
||||||
msg_id = tab.last_sent_message["id"]
|
msg_id = tab.last_sent_message["id"]
|
||||||
|
|
Loading…
Reference in a new issue