aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_buffer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/slack/slack_buffer.py b/slack/slack_buffer.py
index 20dc86c..a3155e6 100644
--- a/slack/slack_buffer.py
+++ b/slack/slack_buffer.py
@@ -405,7 +405,11 @@ class SlackBuffer(ABC):
print_error("The regex didn't match any part of the message")
async def linkify_text(self, text: str) -> str:
- escaped_text = htmlescape(text)
+ escaped_text = (
+ htmlescape(text)
+ # Replace some WeeChat formatting chars with Slack formatting chars
+ .replace("\x02", "*").replace("\x1D", "_")
+ )
users = await gather(*self.workspace.users.values(), return_exceptions=True)
nick_to_user_id = {