Small fix

This commit is contained in:
Profitroll 2023-01-03 21:54:01 +01:00
parent aad5c4f9f2
commit 1268c33830
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ async def commands_register():
valid_locales = []
files_locales = listdir(f'{configGet("locale", "locations")}')
for entry in files_locales:
if entry.endswith(".json"):
valid_locales.append(".".join(entry.split(".")[:-1]))
@ -131,7 +131,7 @@ async def commands_register():
enabled = False
for module in config_commands[command]["modules"]:
if config_modules[module] == module:
if config_modules[module]["enabled"] is True:
enabled = True
if enabled is False: