From c553fc34891c6dbd1585c0193b56811b1477e760 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Wed, 12 Dec 2001 22:10:38 +0000 Subject: [PATCH] Now storing 3d addresses instead of 2d addresses for seenby lists --- ChangeLog | 5 +++++ lib/falists.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69615316..c406f0af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4240,6 +4240,11 @@ v0.33.19 26-Oct-2001 SETUP.sh Better grep to check for excisting usernames like bbs, mbse. + libcommon.a: + When adding seenby entries, the zone number is copied from the + previous adress just like with the net numbers. This is for + old style tic files, they were not full 3d. + lang: Changed language prompts 6, 71, 429. Added language prompts 472 and 473 for FS editor. diff --git a/lib/falists.c b/lib/falists.c index 7152527c..14acab5d 100644 --- a/lib/falists.c +++ b/lib/falists.c @@ -1,8 +1,7 @@ /***************************************************************************** * - * File ..................: falists.c + * $Id$ * Purpose ...............: SEEN-BY and PATH lists - * Last modification date : 31-Jul-2001 * ***************************************************************************** * Copyright (C) 1997-2001 @@ -80,7 +79,7 @@ void fill_list(fa_list **fap, char *str, fa_list **omit) { fa_list *tmp; faddr *ta; - static unsigned int oldnet; + static unsigned int oldzone, oldnet; char *buf, *p, *q, *r; int allowskip = 1; @@ -94,6 +93,10 @@ void fill_list(fa_list **fap, char *str, fa_list **omit) p; p = (q < r) ? strtok(q, " \t\n"):NULL, q = p ? p + strlen(p) + 1:r) if ((ta = parsefnode(p))) { + if (ta->zone == 0) + ta->zone = oldzone; + else + oldzone = ta->zone; if (ta->net == 0) ta->net = oldnet; else