mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
adjust owners logic in Tools
This commit is contained in:
parent
40babfc809
commit
1f170feccd
@ -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)
|
||||
|
||||
|
||||
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user