This commit is contained in:
deathbybandaid 2022-02-24 11:46:45 -05:00
parent 5e050dc012
commit 4846c8f1d8

View File

@ -17,17 +17,17 @@ def prerun():
# we are going to redispatch commands # we are going to redispatch commands
# This will give sopel the appearance of recieving individual commands # This will give sopel the appearance of recieving individual commands
if comrun.is_multi_command: if comrun.is_multi_command:
if not comrun.is_rulematch: if not comrun.is_rulematch:
sb.commands.dispatch(comrun.command) sb.commands.dispatch(comrun.command)
elif comrun.is_rulematch: elif comrun.is_rulematch and comrun.has_command_been_sanitized:
if comrun.has_command_been_sanitized: sb.commands.dispatch(comrun.command)
sb.commands.dispatch(comrun.command)
for trigger_dict in comrun.commands[1:]: for trigger_dict in comrun.commands[1:]:
if not comrun.is_rulematch: if not comrun.is_rulematch:
sb.commands.dispatch(trigger_dict) sb.commands.dispatch(trigger_dict)
elif comrun.is_rulematch: elif comrun.is_rulematch and comrun.has_command_been_sanitized:
if not sb.commands.is_real_command(trigger_dict): sb.commands.dispatch(trigger_dict)
sb.commands.dispatch(trigger_dict)
return return
# If the original trigger is not the same after splits # If the original trigger is not the same after splits