Skip to content

Commit

Permalink
Codechange: update to latest black coding style (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain authored Mar 1, 2024
1 parent a3320c6 commit 6667445
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dibridge/irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"(?<!\w)" + re.escape(puppet._nickname) + r"(?!\w)", f"<@{discord_id}>", part)
if "://" not in part
else part
(
re.sub(r"(?<!\w)" + re.escape(puppet._nickname) + r"(?!\w)", f"<@{discord_id}>", part)
if "://" not in part
else part
)
for part in message.split(" ")
]
)
Expand Down

0 comments on commit 6667445

Please sign in to comment.