test
This commit is contained in:
parent
1e50902504
commit
181aa32dd3
@ -17,19 +17,25 @@ 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:
|
||||||
|
bot.say("multi")
|
||||||
if not comrun.is_rulematch:
|
if not comrun.is_rulematch:
|
||||||
|
bot.say("not rule match")
|
||||||
sb.commands.dispatch(comrun.command)
|
sb.commands.dispatch(comrun.command)
|
||||||
elif comrun.is_rulematch:
|
elif comrun.is_rulematch:
|
||||||
|
bot.say("is rule match")
|
||||||
if comrun.has_command_been_sanitized:
|
if comrun.has_command_been_sanitized:
|
||||||
|
bot.say("sanitized")
|
||||||
sb.commands.dispatch(comrun.command)
|
sb.commands.dispatch(comrun.command)
|
||||||
|
else:
|
||||||
|
bot.say("not sanitized")
|
||||||
for trigger_dict in comrun.commands[1:]:
|
for trigger_dict in comrun.commands[1:]:
|
||||||
|
bot.say(str(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
|
||||||
# so we will now redispatch to help get the correct function passed
|
# so we will now redispatch to help get the correct function passed
|
||||||
if comrun.has_command_been_sanitized:
|
if comrun.has_command_been_sanitized:
|
||||||
bot.say("sanitized")
|
|
||||||
if comrun.is_pipe_command:
|
if comrun.is_pipe_command:
|
||||||
trigger_dict = rebuild_pipes(comrun.commands)
|
trigger_dict = rebuild_pipes(comrun.commands)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user