Replace ZeroWidthNoJoiner with ZeroWidthSpace

In noping and relay names
This commit is contained in:
hedy 2022-08-31 14:41:20 +08:00
parent b09efae29d
commit 92f69dcdc5
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class Server(BaseServer):
for npn in NOPING: for npn in NOPING:
offset = 1 offset = 1
for loc in find_all_indexes(text.lower(), npn.lower()): 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 offset += 1
for server in self.bot.servers: for server in self.bot.servers:
@ -133,7 +133,7 @@ class Server(BaseServer):
return return
for c in self.chans_actual: for c in self.chans_actual:
# if c != chan: # 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: if not hide:
s += f"{chan}" s += f"{chan}"
s += f"> {msg}" s += f"> {msg}"