Fixed faulty logic with --no-prompt

This commit is contained in:
Twentysix 2016-06-30 23:07:17 +02:00
parent c34486a004
commit 6271f9aefd

5
red.py
View File

@ -316,7 +316,10 @@ def load_cogs():
if extension.lower() == "cogs.owner":
continue
in_reg = extension in registry
if not (in_reg or no_prompt):
if in_reg is False:
if no_prompt is True:
registry[extension] = False
continue
print("\nNew extension: {}".format(extension))
print("Load it?(y/n)")
if not get_answer():