adjust owners logic in Tools

This commit is contained in:
deathbybandaid 2019-05-03 12:06:29 -04:00
parent 40babfc809
commit 1f170feccd
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ def setup(bot):
pass
@sopel.module.nickname_commands('owners', 'owner')
@sopel.module.nickname_commands('owners', 'owners')
def bot_command_owners(bot, trigger):
bot_command_process(bot, trigger)

View File

@ -37,6 +37,8 @@ def sopel_triggerargs(bot, trigger, command_type='module_command'):
def bot_privs(bot, privtype):
if privtype == 'owners':
privtype = 'owner'
botpriveval = eval("bot.config.core." + privtype)
if not isinstance(botpriveval, list):
botpriveval = [botpriveval]