diff options
author | mathieui <mathieui@mathieui.net> | 2016-05-10 21:31:37 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-05-10 21:31:37 +0200 |
commit | 65a37c44dde010ade7440ee2a80bcea4ad71114a (patch) | |
tree | 13640f8bee144368fbf5508f0369a0b656d05103 /plugins | |
parent | 216ca997ad3f5d4b69c6396df5895099b2ce2123 (diff) | |
download | poezio-65a37c44dde010ade7440ee2a80bcea4ad71114a.tar.gz poezio-65a37c44dde010ade7440ee2a80bcea4ad71114a.tar.bz2 poezio-65a37c44dde010ade7440ee2a80bcea4ad71114a.tar.xz poezio-65a37c44dde010ade7440ee2a80bcea4ad71114a.zip |
Fix a crash in the marquee plugin
xml does not like ascii control chars.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/marquee.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/marquee.py b/plugins/marquee.py index e823fb18..78bcc4c9 100644 --- a/plugins/marquee.py +++ b/plugins/marquee.py @@ -36,6 +36,7 @@ Configuration """ from plugin import BasePlugin import tabs +import xhtml from decorators import command_args_parser def move(text, step, spacing): @@ -53,6 +54,7 @@ class Plugin(BasePlugin): @command_args_parser.raw def command_marquee(self, args): tab = self.api.current_tab() + args = xhtml.clean_text(xhtml.convert_simple_to_full_colors(args)) tab.command_say(args) is_muctab = isinstance(tab, tabs.MucTab) msg_id = tab.last_sent_message["id"] |