From bbb46d1a7f5007ddd5f9451da1a4f962ba15eec2 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 22 Jul 2016 01:27:45 +0000
Subject: [PATCH] Add a new IgnorePassword global key to tickit.ini to
 completely ignore all TIC passwords and not care if they match the packet
 password or not.

This imports *ALL* TIC files into the local file base, possibly overriding
existing files, so could be dangerous if you accept incoming TIC files from
anybody (which is the normal Fido setup).
---
 exec/tickit.js | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/exec/tickit.js b/exec/tickit.js
index d299a8fe30..15f57fc4b1 100644
--- a/exec/tickit.js
+++ b/exec/tickit.js
@@ -503,8 +503,14 @@ function parse_ticfile(fname)
 			return false;
 		}
 	}
-	if (!sbbsecho.match_pw(tic.from, tic.pw))
-		return false;
+
+	if (tickit.gcfg.ignorepassword === undefined ||
+	    tickit.gcfg.ignorepassword.toLowerCase() == 'no' ||
+	    tickit.gcfg.ignorepassword.toLowerCase() == 'off' ||
+	    tickit.gcfg.ignorepassword.toLowerCase() == 'false')
+		if (!sbbsecho.match_pw(tic.from, tic.pw))
+			return false;
+	}
 
 	tic[' forward'] = outtic;
 
-- 
GitLab