test return

This commit is contained in:
deathbybandaid 2019-06-27 12:18:19 -04:00
parent 72fd1bb484
commit 4e00e303f8
2 changed files with 4 additions and 5 deletions

View File

@ -95,9 +95,8 @@ def prerun_query(t_command_type='module', t_command_subtype=None):
@functools.wraps(function)
def internal_prerun(bot, trigger, *args, **kwargs):
if t_command_subtype:
if t_command_subtype != 'query':
return
if t_command_subtype != t_command_type:
return
trigger_command_type = str(t_command_type)

View File

@ -19,7 +19,7 @@ def query_trigger(bot, trigger):
@SpiceBot.events.check_ready([SpiceBot.events.BOT_COMMANDS])
@SpiceBot.prerun_query('nickname', 'query')
@SpiceBot.prerun_query('nickname', 'nickname')
@sopel.module.nickname_commands('(.*)')
def query_detection_nick(bot, trigger):
@ -85,7 +85,7 @@ def query_detection_nick(bot, trigger):
@SpiceBot.events.check_ready([SpiceBot.events.BOT_COMMANDS])
@SpiceBot.prerun_query('module', 'query')
@SpiceBot.prerun_query('module', 'module')
@sopel.module.rule('^\?(.*)')
def query_detection(bot, trigger):