commit 5e2b7ea6ce08b890f0fc6fc41cdeb0b702ac5c44
parent 9a0db80afcd84ff449398cf76cf2f4907d1bb63d
Author: xfnw <xfnw@ttm.sh>
Date: Tue, 24 Nov 2020 19:56:35 -0500
insert a zero-width-non-joiner so people will not ping themself on every message
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bot.py b/bot.py
@@ -66,7 +66,7 @@ class Server(BaseServer):
async def bc(self,name,nick,msg):
if self.disconnected or name == self.name or "chan" not in list(dir(self)):
return
- await self.send(build("PRIVMSG",[self.chan,"<"+nick+"@"+name+"> "+msg]))
+ await self.send(build("PRIVMSG",[self.chan,"<"+nick[:1]+"\u200c"+nick[1:]+"@"+name+"> "+msg]))
class Bot(BaseBot):
def create_server(self, name: str):