From 12b8af11df35dda535412b0c02ba792890095a7d Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 20 Mar 2021 18:22:52 +0100 Subject: [PATCH] muctab: await /invite --- poezio/tabs/muctab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index 38871fc5..c7d7d621 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -1366,13 +1366,13 @@ class MucTab(ChatTab): ########################## COMMANDS #################################### @command_args_parser.quoted(1, 1, ['']) - def command_invite(self, args: List[str]) -> None: + async def command_invite(self, args: List[str]) -> None: """/invite [reason]""" if args is None: self.core.command.help('invite') return jid, reason = args - self.core.command.invite('%s %s "%s"' % (jid, self.jid.bare, reason)) + await self.core.command.invite('%s %s "%s"' % (jid, self.jid.bare, reason)) @command_args_parser.quoted(1) def command_info(self, args: List[str]) -> None: