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/tell.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/tell.py')
-rw-r--r-- | plugins/tell.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/tell.py b/plugins/tell.py index 614c1ef5..cd72a9e5 100644 --- a/plugins/tell.py +++ b/plugins/tell.py @@ -25,6 +25,7 @@ This plugin defines two new commands for chatroom tabs: List all queued messages for the current chatroom. """ +import asyncio from poezio.plugin import BasePlugin from poezio.core.structs import Completion from poezio.decorators import command_args_parser @@ -66,7 +67,7 @@ class Plugin(BasePlugin): if nick not in self.tabs[tab]: return for i in self.tabs[tab][nick]: - tab.command_say("%s: %s" % (nick, i)) + asyncio.ensure_future(tab.command_say("%s: %s" % (nick, i))) del self.tabs[tab][nick] @command_args_parser.ignored |