Fix torrent search

This commit is contained in:
Anas 2022-11-11 07:29:54 +02:00 committed by GitHub
parent 7b9457cc89
commit a811dee88c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ def torser(update, context):
user_id = update.message.from_user.id
buttons = ButtonMaker()
SEARCH_PLUGINS = config_dict['SEARCH_PLUGINS']
if SITES is None and SEARCH_PLUGINS:
if SITES is None and not SEARCH_PLUGINS:
sendMessage("No API link or search PLUGINS added for this function", context.bot, update.message)
elif len(context.args) == 0 and SITES is None:
sendMessage("Send a search key along with command", context.bot, update.message)