diff --git a/bot/modules/search.py b/bot/modules/search.py index ceadc908ec..e778518b39 100644 --- a/bot/modules/search.py +++ b/bot/modules/search.py @@ -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)