Merge remote-tracking branch 'refs/remotes/origin/main' into main
This commit is contained in:
commit
d23a7f68f7
2
bot.py
2
bot.py
|
@ -36,7 +36,7 @@ class Server(BaseServer):
|
|||
async def line_send(self, line: Line):
|
||||
print(f"{self.name} > {line.format()}")
|
||||
async def bc(self,name,nick,msg):
|
||||
if name == self.name:
|
||||
if name == self.name or "chan" not in list(dir(self)):
|
||||
return
|
||||
await self.send(build("PRIVMSG",[self.chan,"<"+nick+"@"+name+"> "+msg]))
|
||||
|
||||
|
|
Loading…
Reference in New Issue