From e3f75d733c6f267b7e4e3791375ff3d57b584b7c Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 3 May 2019 11:14:14 -0400 Subject: [PATCH] Update Triggerargs --- sopel_modules/SpiceBot_SBTools/__init__.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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')