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

Commits (1)
......@@ -1298,6 +1298,21 @@ function getsvar(args, offset, vname)
return v;
}
/*
* Returns a string if variable name is a string, but only takes one arg.
*/
function getsvar1(name, vname)
{
var v = getvar(name);
var fv = getvar(vname);
if (typeof fv === 'string') {
if (typeof v !== 'string')
return replace_vars(name);
}
return v;
}
function expand_ticks(str)
{
if (typeof str !== 'string')
......
......@@ -1387,7 +1387,7 @@ function insane_run_ref(sec, fname, refret)
tmp = getvar(args[++tmp2]).length;
}
else
tmp = getsvar(args, tmp2, args[0]);
tmp = getsvar1(args, tmp2, args[0]);
tmp2++;
if (getvar(args[0]).toString().toLowerCase() === tmp.toString().toLowerCase())
handlers.do(args.slice(tmp2 + 1));
......