diff --git a/lib/common.h b/lib/common.h index c49412f5..15f9ace5 100644 --- a/lib/common.h +++ b/lib/common.h @@ -292,6 +292,8 @@ typedef struct _node { unsigned long oflags; /* Online flags */ unsigned long xflags; /* Request flags */ char *uflags[MAXUFLAGS]; /* User flags */ + int t1; /* T flag, first char */ + int t2; /* T flag, second char */ } node; diff --git a/lib/nodelist.c b/lib/nodelist.c index 4aa5b9e3..c12144b8 100644 --- a/lib/nodelist.c +++ b/lib/nodelist.c @@ -1,8 +1,7 @@ /***************************************************************************** - * - * File ..................: nodelist.c + * + * $Id$ * Purpose ...............: Read nodelists information - * Last modification date : 06-Jan-2001 * ***************************************************************************** * Copyright (C) 1997-2001 @@ -400,6 +399,13 @@ node *getnlent(faddr *addr) for (j = 0; xkey[j].key; j++) if (strcasecmp(p, xkey[j].key) == 0) nodebuf.xflags |= xkey[j].flag; + if ((p[0] == 'T') && (strlen(p) == 3)) { + /* + * System open hours flag + */ + nodebuf.t1 = p[1]; + nodebuf.t2 = p[2]; + } if (!stdflag) { if (ixflag < MAXUFLAGS) { nodebuf.uflags[ixflag++] = p;