insert a zero-width-non-joiner so people will not ping themself on every message
This commit is contained in:
parent
9a0db80afc
commit
5e2b7ea6ce
2
bot.py
2
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):
|
||||
|
|
Loading…
Reference in New Issue