Skip to content

Commit

Permalink
SEARCH_PLUGINS Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajveer0916 authored Nov 30, 2022
1 parent 44cb64f commit 35126aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/modules/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,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 SEARCH_PLUGINS is None:
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)
Expand Down

0 comments on commit 35126aa

Please sign in to comment.