test
This commit is contained in:
parent
93034aa041
commit
384854f52b
@ -1,20 +1,11 @@
|
|||||||
|
|
||||||
|
|
||||||
def rebuild_pipes(pipes):
|
def rebuild_pipes(commands):
|
||||||
first_pipe = pipes[0]
|
|
||||||
del pipes[0]
|
|
||||||
|
|
||||||
repipe_trigger_dict = {
|
repipe_trigger_dict = commands[0]
|
||||||
"trigger_type": first_pipe["trigger_type"],
|
|
||||||
"trigger_prefix": first_pipe["trigger_prefix"],
|
|
||||||
"trigger_str": first_pipe["trigger_str"],
|
|
||||||
"trigger_command": first_pipe["trigger_command"],
|
|
||||||
"trigger_hostmask": first_pipe["trigger_hostmask"],
|
|
||||||
"trigger_sender": first_pipe["trigger_sender"]
|
|
||||||
}
|
|
||||||
|
|
||||||
repipe_trigger_dict["trigger_str"] += " | "
|
repipe_trigger_dict["trigger_str"] += " | "
|
||||||
for trigger_dict in pipes:
|
for trigger_dict in commands[1:]:
|
||||||
print(trigger_dict)
|
print(trigger_dict)
|
||||||
if trigger_dict["trigger_type"] == "command":
|
if trigger_dict["trigger_type"] == "command":
|
||||||
repipe_trigger_dict["trigger_str"] += " | %s%s %s" % (trigger_dict["trigger_prefix"], trigger_dict["trigger_command"], trigger_dict["trigger_str"])
|
repipe_trigger_dict["trigger_str"] += " | %s%s %s" % (trigger_dict["trigger_prefix"], trigger_dict["trigger_command"], trigger_dict["trigger_str"])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user