diff --git a/dibridge/irc.py b/dibridge/irc.py index 4496eb3..fa0249a 100644 --- a/dibridge/irc.py +++ b/dibridge/irc.py @@ -203,9 +203,11 @@ async def _relay_mesage(self, irc_username, message): # If the username is said as its own word, replace it with a Discord highlight. message = " ".join( [ - re.sub(r"(?", part) - if "://" not in part - else part + ( + re.sub(r"(?", part) + if "://" not in part + else part + ) for part in message.split(" ") ] )