Fix jimmy's filter

This commit is contained in:
Nexus 2023-03-07 15:10:56 +00:00
parent 61f3f063a4
commit 71a15c8c4f
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -612,7 +612,7 @@ class OtherCog(commands.Cog):
async def blacklist_check() -> bool | str:
async with aiofiles.open("domains.txt") as blacklist:
for ln in iter(lambda l: l.strip(), await blacklist.readline()):
for ln in await blacklist.readlines():
if not ln.strip():
continue
if re.match(ln.strip(), url.netloc):