summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2021-03-20 18:22:52 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2021-03-20 18:22:52 +0100
commit12b8af11df35dda535412b0c02ba792890095a7d (patch)
tree014df5b4fa3fef822d12eb5f3505ef910e107588
parent1de60fb213ee6fc1a845fffcbf91d360729353ce (diff)
downloadpoezio-12b8af11df35dda535412b0c02ba792890095a7d.tar.gz
poezio-12b8af11df35dda535412b0c02ba792890095a7d.tar.bz2
poezio-12b8af11df35dda535412b0c02ba792890095a7d.tar.xz
poezio-12b8af11df35dda535412b0c02ba792890095a7d.zip
muctab: await /invite
-rw-r--r--poezio/tabs/muctab.py4
1 files 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 <jid> [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: