also ban cloak because ngircd's line matching is useless

This commit is contained in:
xfnw 2022-02-27 06:46:53 -07:00
parent 60d6d97160
commit 3dc7261caf

3
bam.py
View file

@ -37,8 +37,9 @@ class Server(BaseServer):
if line.params[1] in self.isoper: if line.params[1] in self.isoper:
self.isoper.remove(line.params[1]) self.isoper.remove(line.params[1])
return return
await self.send_raw(BADLINE.format(line.params[2].split()[4]))
await self.send_raw(KILL.format(line.params[1])) await self.send_raw(KILL.format(line.params[1]))
await self.send_raw(BADLINE.format(line.params[2].split()[3]))
await self.send_raw(BADLINE.format(line.params[2].split()[4]))
async def on_privmsg(self, line): async def on_privmsg(self, line):
nick = line.hostmask.nickname nick = line.hostmask.nickname