diff --git a/xmpp_discord_bridge/main.py b/xmpp_discord_bridge/main.py index 1f702c3..ae2417b 100644 --- a/xmpp_discord_bridge/main.py +++ b/xmpp_discord_bridge/main.py @@ -343,6 +343,10 @@ class BridgeComponent(ComponentXMPP): # Handle a status change for channel in self._guild_map[guild]: muc = self._guild_map[guild][channel] + if after.id not in self._virtual_muc_nicks[muc]: + self._logger.debug("Got presence update from someone outside of the channel. Ignoring...") + return + if after.status == Status.offline: if self._dont_ignore_offline: self.virtual_user_update_presence(muc,