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

Moved user's batch download list (.dwn) file creation into batch_create_list().

parent 34dd74a4
......@@ -49,7 +49,6 @@ void sbbs_t::logout()
ushort ttoday;
node_t node;
struct tm * tm, tm_now;
FILE *stream;
now=time(NULL);
tm=gmtime(&now);
......@@ -86,12 +85,7 @@ void sbbs_t::logout()
#endif
batdn_total=0; }
if(batdn_total) {
sprintf(str,"%sfile/%04u.dwn",cfg.data_dir,useron.number);
if((stream=fnopen(NULL,str,O_WRONLY|O_TRUNC|O_CREAT))!=NULL) {
for(i=0;i<(int)batdn_total;i++)
fprintf(stream,"%s\r\n",batdn_name[i]);
fclose(stream); } }
batch_create_list();
if(sys_status&SS_USERON && thisnode.status!=NODE_QUIET && !(useron.rest&FLAG('Q')))
for(i=1;i<=cfg.sys_nodes;i++)
......
......@@ -550,6 +550,7 @@ public:
/* bat_xfer.cpp */
void batchmenu(void);
void batch_create_list(void);
void batch_add_list(char *list);
bool create_batchup_lst(void);
bool create_batchdn_lst(void);
......
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