From 7042ff8c36a95e965de2eeb75953ee9ad6f2ac8c Mon Sep 17 00:00:00 2001 From: Alexander PapaTutuWawa Date: Thu, 16 Sep 2021 16:15:58 +0200 Subject: [PATCH] a --- xmpp_discord_bridge/main.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xmpp_discord_bridge/main.py b/xmpp_discord_bridge/main.py index b60c3af..bdcb461 100644 --- a/xmpp_discord_bridge/main.py +++ b/xmpp_discord_bridge/main.py @@ -212,11 +212,14 @@ class BridgeComponent(ComponentXMPP): ] for member in dchannel.members: - self._logger.debug("Member: %s", self.spoof_member_jid(member.id).bare) + await self.plugin["xep_0045"].set_affiliation(muc, + "member", + jid=self.spoof_member_jid(member.id).bare, + ifrom=self._bot_jid_full) - await self.plugin["xep_0045"].send_affiliation_list(muc, - affiliation_delta, - ifrom=self._bot_jid_full) + #await self.plugin["xep_0045"].send_affiliation_list(muc, + # affiliation_delta, + # ifrom=self._bot_jid_full) for member in dchannel.members: self.virtual_user_join_muc(muc, member, update_state_tracking=False)