mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
adjust owners logic in Tools
This commit is contained in:
parent
40babfc809
commit
1f170feccd
@ -18,7 +18,7 @@ def setup(bot):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@sopel.module.nickname_commands('owners', 'owner')
|
@sopel.module.nickname_commands('owners', 'owners')
|
||||||
def bot_command_owners(bot, trigger):
|
def bot_command_owners(bot, trigger):
|
||||||
bot_command_process(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):
|
def bot_privs(bot, privtype):
|
||||||
|
if privtype == 'owners':
|
||||||
|
privtype = 'owner'
|
||||||
botpriveval = eval("bot.config.core." + privtype)
|
botpriveval = eval("bot.config.core." + privtype)
|
||||||
if not isinstance(botpriveval, list):
|
if not isinstance(botpriveval, list):
|
||||||
botpriveval = [botpriveval]
|
botpriveval = [botpriveval]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user