fork of https://f-hub.org/XMPP/xmpp-discord-bridge

xmpp: Ignore presence from users outside of tracked channels

+4
+4
xmpp_discord_bridge/main.py
··· 343 343 # Handle a status change 344 344 for channel in self._guild_map[guild]: 345 345 muc = self._guild_map[guild][channel] 346 + if after.id not in self._virtual_muc_nicks[muc]: 347 + self._logger.debug("Got presence update from someone outside of the channel. Ignoring...") 348 + return 349 + 346 350 if after.status == Status.offline: 347 351 if self._dont_ignore_offline: 348 352 self.virtual_user_update_presence(muc,