From 22eeeb5fd2811623cdfbad933dd0c7b966286b28 Mon Sep 17 00:00:00 2001 From: lickthecheese Date: Fri, 24 Apr 2020 12:21:20 -0400 Subject: [PATCH] fix bug where it didint parse out admin commands when the nick changes --- modules/__pycache__/nlp.cpython-36.pyc | Bin 2730 -> 2731 bytes modules/nlp.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/__pycache__/nlp.cpython-36.pyc b/modules/__pycache__/nlp.cpython-36.pyc index e5e94d5befc8d45e03f507be10f81f68389adc10..d94a24ed4ef70b2b88f7e0edebe64f79f182b62e 100644 GIT binary patch delta 199 zcmZ1_x>}Uen3tF9y5QotmW`Zc?2J<;H?UiAC)6;PFx4<*F*h?#{>UyPmS<4IoWhX8 z*vcfykiwMBR5Ss|2T3V1G5bxHWsE7-wjD@ktWO5y6BewxitVkV1m`~>7GBdCPGBr7itU)3gAi@wth=T|v T5TOSm%s~Xm+#&Som=0tzur z{?4w*&f@oym4Sg_vJ^)u7Z0NtqW~ihW0A$=PL5q{WG^U0o^vXZ7irXvs+a{&nk zpdv1yG8V=n)5-OmjogMnu_AR4VKJGT%gn$Y$kgO4vH^)`fCwWHAr2yxK!hHMumBMt MbBpXJ7jjtv07r!*qW}N^ diff --git a/modules/nlp.py b/modules/nlp.py index 24e7eda..2ec98da 100644 --- a/modules/nlp.py +++ b/modules/nlp.py @@ -56,7 +56,7 @@ async def filter(self, c, n, m): if c in self.qtime and self.qtime[c] > time.time(): return if m[:len(self.prefix)] == self.prefix: - m = m[5:] + m = m[len(self.prefix):] await go(self, c, n, m) elif m[:4] == 'kim ': m = m[4:]