diff --git a/sopel_modules/SpiceBot_SBTools/__init__.py b/sopel_modules/SpiceBot_SBTools/__init__.py index 11cf0e6..204ca6a 100644 --- a/sopel_modules/SpiceBot_SBTools/__init__.py +++ b/sopel_modules/SpiceBot_SBTools/__init__.py @@ -26,13 +26,10 @@ def sopel_triggerargs(bot, trigger, command_type='module_command'): triggerargs = spicemanip.main(trigger.args[1], 'create') triggerargs = spicemanip.main(triggerargs, 'create') - if command_type in ['module_command']: - command = spicemanip.main(triggerargs, 1).lower() - triggerargs = spicemanip.main(triggerargs, '2+', 'list') - elif command_type in ['nickname_command']: - command = spicemanip.main(triggerargs, 1).lower()[1:] + if command_type in ['nickname_command']: + command = spicemanip.main(triggerargs, 2).lower() triggerargs = spicemanip.main(triggerargs, '3+', 'list') - elif command_type in ['prefix_command']: + else: command = spicemanip.main(triggerargs, 1).lower()[1:] triggerargs = spicemanip.main(triggerargs, '2+', 'list')