muctab: await /invite

This commit is contained in:
Emmanuel Gil Peyrot 2021-03-20 18:22:52 +01:00
parent 1de60fb213
commit 12b8af11df

View file

@ -1366,13 +1366,13 @@ class MucTab(ChatTab):
########################## COMMANDS #################################### ########################## COMMANDS ####################################
@command_args_parser.quoted(1, 1, ['']) @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]""" """/invite <jid> [reason]"""
if args is None: if args is None:
self.core.command.help('invite') self.core.command.help('invite')
return return
jid, reason = args 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) @command_args_parser.quoted(1)
def command_info(self, args: List[str]) -> None: def command_info(self, args: List[str]) -> None: