mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 20:58:54 -05:00
Fixed faulty logic with --no-prompt
This commit is contained in:
parent
c34486a004
commit
6271f9aefd
5
red.py
5
red.py
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user