Skip to content
Snippets Groups Projects
Commit 291ff7b1 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment