mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3] Fix logic issue with [p]load (#1460)
This commit is contained in:
parent
772590c41c
commit
d79d8fbbea
@ -342,9 +342,7 @@ class Core:
|
|||||||
#await ctx.send(_("No module named '{}' was found in any"
|
#await ctx.send(_("No module named '{}' was found in any"
|
||||||
# " cog path.").format(c))
|
# " cog path.").format(c))
|
||||||
|
|
||||||
if len(cogspecs) == 0:
|
if len(cogspecs) > 0:
|
||||||
return
|
|
||||||
|
|
||||||
for spec, name in cogspecs:
|
for spec, name in cogspecs:
|
||||||
try:
|
try:
|
||||||
await ctx.bot.load_extension(spec)
|
await ctx.bot.load_extension(spec)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user