impromptu: add room jid in invite info message
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
07f56779a8
commit
7e3d9c0dcb
2 changed files with 1 additions and 1 deletions
|
@ -984,7 +984,6 @@ class CommandCore:
|
||||||
jids.add(bare)
|
jids.add(bare)
|
||||||
|
|
||||||
asyncio.create_task(self.core.impromptu(jids))
|
asyncio.create_task(self.core.impromptu(jids))
|
||||||
self.core.information('Invited %s to a random room' % (', '.join(jids)), 'Info')
|
|
||||||
|
|
||||||
@command_args_parser.quoted(1, 1, [''])
|
@command_args_parser.quoted(1, 1, [''])
|
||||||
def decline(self, args):
|
def decline(self, args):
|
||||||
|
|
|
@ -1031,6 +1031,7 @@ class Core:
|
||||||
|
|
||||||
for jid in jids:
|
for jid in jids:
|
||||||
await self.invite(jid, room, force_mediated=True)
|
await self.invite(jid, room, force_mediated=True)
|
||||||
|
self.information('Invited %s to %s' % (', '.join(jids), room.bare), 'Info')
|
||||||
|
|
||||||
# TODO: Use xep_0045's async join_muc_wait somehow instead?
|
# TODO: Use xep_0045's async join_muc_wait somehow instead?
|
||||||
self.xmpp.add_event_handler(
|
self.xmpp.add_event_handler(
|
||||||
|
|
Loading…
Reference in a new issue