mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix jimmy's filter
This commit is contained in:
parent
61f3f063a4
commit
71a15c8c4f
1 changed files with 1 additions and 1 deletions
|
@ -612,7 +612,7 @@ class OtherCog(commands.Cog):
|
||||||
|
|
||||||
async def blacklist_check() -> bool | str:
|
async def blacklist_check() -> bool | str:
|
||||||
async with aiofiles.open("domains.txt") as blacklist:
|
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():
|
if not ln.strip():
|
||||||
continue
|
continue
|
||||||
if re.match(ln.strip(), url.netloc):
|
if re.match(ln.strip(), url.netloc):
|
||||||
|
|
Loading…
Reference in a new issue