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 /poezio/core/core.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 'poezio/core/core.py')
-rw-r--r-- | poezio/core/core.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py index bc57024c..0c71b566 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -906,7 +906,9 @@ class Core: """ if not isinstance(self.tabs.current_tab, ChatTab): return False - self.tabs.current_tab.command_say(msg) + asyncio.ensure_future( + self.tabs.current_tab.command_say(msg) + ) return True async def invite(self, jid: JID, room: JID, reason: Optional[str] = None, force_mediated: bool = False) -> bool: |