Improve group confirm for ring groups
This commit is contained in:
@@ -111,10 +111,6 @@
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--set confirm
|
|
||||||
-- session:execute("set", "group_confirm_key=exec");
|
|
||||||
-- session:execute("set", "group_confirm_file=lua ".. scripts_dir .."/confirm.lua");
|
|
||||||
|
|
||||||
--process the ring group
|
--process the ring group
|
||||||
if (ring_group_forward_enabled == "true" and string.len(ring_group_forward_destination) > 0) then
|
if (ring_group_forward_enabled == "true" and string.len(ring_group_forward_destination) > 0) then
|
||||||
--forward the ring group
|
--forward the ring group
|
||||||
@@ -247,15 +243,23 @@
|
|||||||
end
|
end
|
||||||
session:execute("set", "uuids="..uuids);
|
session:execute("set", "uuids="..uuids);
|
||||||
|
|
||||||
|
--set confirm
|
||||||
|
if (ring_group_strategy == "simultaneous"
|
||||||
|
or ring_group_strategy == "sequence"
|
||||||
|
or ring_group_strategy == "rollover") then
|
||||||
|
session:execute("set", "group_confirm_key=exec");
|
||||||
|
session:execute("set", "group_confirm_file=lua ".. scripts_dir .."/confirm.lua");
|
||||||
|
end
|
||||||
|
|
||||||
--determine confirm prompt
|
--determine confirm prompt
|
||||||
if (destination_prompt == nil) then
|
if (destination_prompt == nil) then
|
||||||
group_confirm = "";
|
group_confirm = "confirm=false,";
|
||||||
elseif (destination_prompt == "1") then
|
elseif (destination_prompt == "1") then
|
||||||
group_confirm = "group_confirm_key=exec,group_confirm_file=lua ".. scripts_dir .."/confirm.lua,";
|
group_confirm = "group_confirm_key=exec,group_confirm_file=lua ".. scripts_dir .."/confirm.lua,confirm=true,";
|
||||||
elseif (destination_prompt == "2") then
|
elseif (destination_prompt == "2") then
|
||||||
group_confirm = "group_confirm_key=exec,group_confirm_file=lua ".. scripts_dir .."/confirm.lua,";
|
group_confirm = "group_confirm_key=exec,group_confirm_file=lua ".. scripts_dir .."/confirm.lua,confirm=true,";
|
||||||
else
|
else
|
||||||
group_confirm = "";
|
group_confirm = "confirm=false,";
|
||||||
end
|
end
|
||||||
|
|
||||||
--get user_record value and determine whether to record the session
|
--get user_record value and determine whether to record the session
|
||||||
|
|||||||
Reference in New Issue
Block a user