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 291ff7b1 authored by Rob Swindell's avatar Rob Swindell 💬

Don't load() 822header.js unless we're exporting messages

822header.js adds an enumerable method to the header object which ends up in the output when using the -hdrs option/command.

This addresses issue #277

Note: this is not actually a supported or documented script.
parent 4a82e024
......@@ -3,7 +3,6 @@
"use strict";
load('sbbsdefs.js');
load('822header.js');
function show_index(msgbase, first_msg, last_msg, include_votes)
{
......@@ -61,6 +60,7 @@ function export_msgs(msgbase, option)
var errors = 0;
var hdrs = msgbase.get_all_msg_headers(option.votes);
var i;
load('822header.js');
for(i in hdrs) {
var msg = hdrs[i];
var fname = system.temp_dir + basecode + "_" + msg.number + ".txt";
......
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