From 92f69dcdc52b2a48ccbcc827c4e671d8fa0dfde8 Mon Sep 17 00:00:00 2001 From: hedy Date: Wed, 31 Aug 2022 14:41:20 +0800 Subject: [PATCH] Replace ZeroWidthNoJoiner with ZeroWidthSpace In noping and relay names --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index eab022c..9acc9e9 100644 --- a/main.py +++ b/main.py @@ -101,7 +101,7 @@ class Server(BaseServer): for npn in NOPING: offset = 1 for loc in find_all_indexes(text.lower(), npn.lower()): - text = text[: loc + offset] + "\u200c" + text[loc + offset :] + text = text[: loc + offset] + "\u200b" + text[loc + offset :] offset += 1 for server in self.bot.servers: @@ -133,7 +133,7 @@ class Server(BaseServer): return for c in self.chans_actual: # if c != chan: - s = f"\x0f\x0f\x0f\x0f<{nick[:1]}\u200c{nick[1:]}/{name}" + s = f"\x0f\x0f\x0f\x0f<{nick[:1]}\u200b{nick[1:]}/{name}" if not hide: s += f"{chan}" s += f"> {msg}"