xmpp: Fix muc_mention_compat

This commit is contained in:
PapaTutuWawa 2021-09-16 19:01:40 +02:00
parent d385170165
commit 8c64358134

View File

@ -430,8 +430,8 @@ class BridgeComponent(ComponentXMPP):
self._logger.debug("Message empty. Not relaying.") self._logger.debug("Message empty. Not relaying.")
return return
if self._muc_mention_compat: mentions = [mention.display_name for mention in msg.mentions]
mentions = [mention.display_name for mention in msg.mentions] if self._muc_mention_compat and mentions:
content = ", ".join(mentions) + ": " + msg.clean_content content = ", ".join(mentions) + ": " + msg.clean_content
else: else:
content = msg.clean_content content = msg.clean_content