insert a zero-width-non-joiner so people will not ping themself on every message

This commit is contained in:
vulpine 2020-11-24 19:56:35 -05:00
parent 9a0db80afc
commit 5e2b7ea6ce
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -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):