diff options
author | mathieui <mathieui@mathieui.net> | 2022-02-15 22:43:10 +0100 |
---|---|---|
committer | Maxime Buquet <pep@bouah.net> | 2022-03-23 15:38:00 +0100 |
commit | 6174ca70d9bc36fde9d0a0c08ccb67e874a4711c (patch) | |
tree | 45cd819c9599a75c9af2dd0739dd7d03b8ba2060 /plugins/marquee.py | |
parent | d6de6dccfa4b832a84edd394bee4f92a00069277 (diff) | |
download | poezio-6174ca70d9bc36fde9d0a0c08ccb67e874a4711c.tar.gz poezio-6174ca70d9bc36fde9d0a0c08ccb67e874a4711c.tar.bz2 poezio-6174ca70d9bc36fde9d0a0c08ccb67e874a4711c.tar.xz poezio-6174ca70d9bc36fde9d0a0c08ccb67e874a4711c.zip |
internal: make command_say async
Diffstat (limited to 'plugins/marquee.py')
-rw-r--r-- | plugins/marquee.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/marquee.py b/plugins/marquee.py index 9319a7f6..2fea3ed6 100644 --- a/plugins/marquee.py +++ b/plugins/marquee.py @@ -34,6 +34,7 @@ Configuration """ +import asyncio from poezio.plugin import BasePlugin from poezio import tabs from poezio import xhtml @@ -65,7 +66,7 @@ class Plugin(BasePlugin): 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) + asyncio.ensure_future(tab.command_say(args)) is_muctab = isinstance(tab, tabs.MucTab) msg_id = tab.last_sent_message["id"] jid = tab.jid |