From 06e06f788bdfdd90b1c6684688aeb7fa099772d8 Mon Sep 17 00:00:00 2001 From: xfnw Date: Thu, 15 Sep 2022 21:59:33 -0600 Subject: [PATCH] use ISUPPORT CHANTYPES instead of assuming channels use normal ones fixes #5 might break if the server lacks ISUPPORT i suppose (do any?) --- modules/nlp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nlp.py b/modules/nlp.py index 6a78a8c..f7e62c8 100644 --- a/modules/nlp.py +++ b/modules/nlp.py @@ -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: