Replace ZeroWidthNoJoiner with ZeroWidthSpace
In noping and relay names
This commit is contained in:
parent
b09efae29d
commit
92f69dcdc5
4
main.py
4
main.py
|
@ -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}"
|
||||||
|
|
Loading…
Reference in New Issue