This commit is contained in:
deathbybandaid 2022-02-24 11:24:10 -05:00
parent 3ad69fb64f
commit 9d86ab9fe8

View File

@ -18,10 +18,13 @@ def prerun():
# 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:
print("not a rule match")
sb.commands.dispatch(comrun.command) sb.commands.dispatch(comrun.command)
elif comrun.is_rulematch: elif comrun.is_rulematch:
# if comrun.is_real_command: print("is a rule match")
# if not comrun.is_real_command:
if comrun.has_command_been_sanitized: if comrun.has_command_been_sanitized:
print("has 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:]:
sb.commands.dispatch(trigger_dict) sb.commands.dispatch(trigger_dict)