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 cfd5724e authored by rswindell's avatar rswindell

If a full path is passed to menu(), use it as the base menu filename (don't

prepend the text directory).
parent 4dcf73d5
......@@ -193,12 +193,16 @@ void sbbs_t::menu(const char *code)
if(menu_file[0])
strcpy(path,menu_file);
else {
sprintf(str,"%smenu/",cfg.text_dir);
if(menu_dir[0]) {
strcat(str,menu_dir);
strcat(str,"/");
if(isfullpath(code))
SAFECOPY(str, code);
else {
sprintf(str,"%smenu/",cfg.text_dir);
if(menu_dir[0]) {
strcat(str,menu_dir);
strcat(str,"/");
}
strcat(str,code);
}
strcat(str,code);
strcat(str,".");
sprintf(path,"%s%s",str,term_supports(WIP) ? "wip": term_supports(RIP) ? "rip" : "html");
if(!(term_supports()&(RIP|WIP|HTML)) || !fexistcase(path)) {
......
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