muctab: await /invite
This commit is contained in:
parent
1de60fb213
commit
12b8af11df
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue