Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 8dfb469c authored by Rob Swindell's avatar Rob Swindell 💬

Support text/menu/xtrn<sec-code>.* and text/menu/xtrn<sec-code>_head.* files

Using the xtrn program section internal code protects against renumbering upon
configuration changes (inserting/removing program sections).
At Nelgin's suggestion/request.
parent b1fe3c49
Pipeline #502 passed with stage
in 14 minutes and 55 seconds
......@@ -130,13 +130,20 @@ function external_program_menu(xsec)
if(options.clear_screen)
console.clear(LIGHTGRAY);
var secnum = xtrn_area.sec_list[xsec].number+1
var secnum = xtrn_area.sec_list[xsec].number+1;
var seccode = xtrn_area.sec_list[xsec].code;
if(bbs.menu_exists("xtrn" + secnum + "_head")) {
bbs.menu("xtrn" + secnum + "_head");
}
else if(bbs.menu_exists("xtrn" + seccode + "_head")) {
bbs.menu("xtrn" + seccode + "_head");
}
if(bbs.menu_exists("xtrn" + secnum)) {
bbs.menu("xtrn" + secnum);
}
else if(bbs.menu_exists("xtrn" + seccode)) {
bbs.menu("xtrn" + seccode);
}
else {
var multicolumn = options.multicolumn && prog_list.length > options.singlecolumn_height;
if(options.sort)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment