Added node Hold/Down override

This commit is contained in:
Michiel Broek
2005-08-21 13:35:22 +00:00
parent f478c8ec7e
commit 1cc508c746
5 changed files with 83 additions and 63 deletions

View File

@@ -4,7 +4,7 @@
* Purpose ...............: Read nodelists information
*
*****************************************************************************
* Copyright (C) 1997-2002
* Copyright (C) 1997-2005
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -727,6 +727,16 @@ node *getnlent(faddr *addr)
nodebuf.type = ndx.type;
nodebuf.pflag = ndx.pflag;
/*
* If an override exists on Hold and Down status,
* clear these bits.
*/
if (ndrecord && nd.IgnHold && (nodebuf.pflag & (NL_HOLD + NL_DOWN))) {
nodebuf.pflag &= ~NL_DOWN;
nodebuf.pflag &= ~NL_HOLD;
Syslog('+', "getnlent: %s override node Down/Hold status", ascfnode(addr,0xff));
}
if (*(p = buf + strlen(buf) -1) == '\n')
*p = '\0';
if (*(p = buf + strlen(buf) -1) == '\r')