Extended nodelist with Txx flags

This commit is contained in:
Michiel Broek 2001-12-27 16:59:29 +00:00
parent af0c0ed2e1
commit 3970593dfa
2 changed files with 11 additions and 3 deletions

View File

@ -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;

View File

@ -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;