Fix nsfw searching, first work on tests

This commit is contained in:
Adriene Hutchins 2020-04-08 20:18:03 -04:00
parent 1a123bc25d
commit dfc0953708
3 changed files with 2 additions and 1 deletions

View file

@ -48,7 +48,7 @@ class Search(commands.Cog, name="Basic"):
safesearch: str
# NSFW Filtering
if nono_re.match(query):
if nono_re.match(query) and not is_nsfw:
raise SearchExceptions.SafesearchFail('Query had NSFW.')
base = "https://api.qwant.com/api"

View file