test
This commit is contained in:
parent
e5a5f4a886
commit
79b75e0521
@ -16,16 +16,20 @@ def prerun():
|
|||||||
# Since there was more than one command,
|
# Since there was more than one command,
|
||||||
# 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
|
||||||
print(comrun.commands)
|
if comrun.is_multi_command:
|
||||||
if len(comrun.commands) > 1:
|
if len(comrun.commands) > 1:
|
||||||
if comrun.is_rulematch:
|
|
||||||
if not comrun.is_real_command:
|
# Handling for first command in series
|
||||||
|
if comrun.is_rulematch:
|
||||||
|
if not comrun.is_real_command:
|
||||||
|
sb.commands.dispatch(comrun.command)
|
||||||
|
else:
|
||||||
sb.commands.dispatch(comrun.command)
|
sb.commands.dispatch(comrun.command)
|
||||||
else:
|
|
||||||
sb.commands.dispatch(comrun.command)
|
# All other commands
|
||||||
for trigger_dict in comrun.commands[1:]:
|
for trigger_dict in comrun.commands[1:]:
|
||||||
sb.commands.dispatch(trigger_dict)
|
sb.commands.dispatch(trigger_dict)
|
||||||
return
|
return
|
||||||
|
|
||||||
# If the original trigger is not the same after && or | split
|
# If the original trigger is not the same after && or | split
|
||||||
# so we will now redispatch to help get the correct function passed
|
# so we will now redispatch to help get the correct function passed
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user