From 33cb42fadbb9eadd01ecb7c17089d4a9f30cb23c Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sun, 29 Aug 2004 07:36:15 +0000
Subject: [PATCH] binarydecoder.ini sub-board sections no longer need "sub:"
 prefix (confusing). Added comments regarding binarydecoder.ini file format.

---
 exec/binarydecoder.js | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/exec/binarydecoder.js b/exec/binarydecoder.js
index dfcc13eaad..558ca41594 100644
--- a/exec/binarydecoder.js
+++ b/exec/binarydecoder.js
@@ -1,11 +1,21 @@
 // binarydecoder.js
 
-// Synchronet Binary Attachment Decoder 
+// Synchronet (single or multi-part) Binary Attachment Decoder 
 // for UUE and yEnc encoded binary attachments
 // Requires Synchronet v3.10m or later
 
 // $Id$
 
+// The default attachment storage directory is data/subs/attach
+
+// Format of the ctrl/binarydecoder.ini file (optional):
+//
+// [subcode]
+// attachment_dir = /override/path/to/store/attachments
+// [anothersubcode]
+// [yetanothersubcode]
+// etc.
+
 load("sbbsdefs.js");
 
 const REVISION = "$Revision$".split(' ')[1];
@@ -31,7 +41,7 @@ if(argc) {
 		if(re.test(i))
 			sub.push(msg_area.sub[i]);
 } else
-	sub = file.iniGetAllObjects("code","sub:");
+	sub = file.iniGetAllObjects("code");
 
 // get global ini settings here
 file.close();
-- 
GitLab