Fix: !help [module_name] args check off by one
This commit is contained in:
parent
3754423848
commit
ce0b9a7ccd
|
@ -42,7 +42,7 @@ class MatrixModule(BotModule):
|
||||||
await bot.send_text(room, f'Not a !help setting: {args[0]}')
|
await bot.send_text(room, f'Not a !help setting: {args[0]}')
|
||||||
|
|
||||||
|
|
||||||
if len(args) > 1:
|
if len(args) == 1:
|
||||||
msg = ''
|
msg = ''
|
||||||
modulename = args.pop(0)
|
modulename = args.pop(0)
|
||||||
moduleobject = bot.modules.get(modulename)
|
moduleobject = bot.modules.get(modulename)
|
||||||
|
|
Loading…
Reference in New Issue