use ISUPPORT CHANTYPES instead of assuming channels use normal ones

fixes #5

might break if the server lacks ISUPPORT i suppose (do any?)
This commit is contained in:
xfnw 2022-09-15 21:59:33 -06:00
parent d38345c3d9
commit 06e06f788b
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ async def filter(self, c, n, m):
elif m[: len(self.nickname) + 1] == self.nickname + " ":
m = m[len(self.nickname) + 1 :]
await go(self, c, n, m)
elif "#" not in c and n != self.nickname:
elif c[0] not in self.isupport.chantypes and n != self.nickname:
await go(self, c, n, m)
else:
if len(m.split()) > 1: