From 7e3d9c0dcb3f3cf805cd488ae6f08811d9245ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 24 Dec 2021 23:12:17 +0100 Subject: impromptu: add room jid in invite info message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/core/commands.py | 1 - poezio/core/core.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/core/commands.py b/poezio/core/commands.py index 3225b61e..bc594494 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -984,7 +984,6 @@ class CommandCore: jids.add(bare) 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, ['']) def decline(self, args): diff --git a/poezio/core/core.py b/poezio/core/core.py index e327d4f1..ffdd11d1 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -1031,6 +1031,7 @@ class Core: for jid in jids: 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? self.xmpp.add_event_handler( -- cgit v1.2.3