Added node Hold/Down override
This commit is contained in:
parent
f478c8ec7e
commit
1cc508c746
@ -2,6 +2,9 @@ $Id$
|
||||
|
||||
v0.71.5 18-Aug-2005
|
||||
|
||||
nodelist.a:
|
||||
Clear node Hold or Down status if set in nodes setup.
|
||||
|
||||
mbfido:
|
||||
Removed debug logging for solved crash.
|
||||
Code cleanup.
|
||||
@ -31,6 +34,9 @@ v0.71.5 18-Aug-2005
|
||||
mbsebbs:
|
||||
Code cleanup.
|
||||
|
||||
mbsetup:
|
||||
Added node setup switch to override node Hold or Down status.
|
||||
|
||||
|
||||
v0.71.4 12-Aug-2005 - 18-Aug-2005
|
||||
|
||||
|
2
TODO
2
TODO
@ -97,8 +97,6 @@ mbfido:
|
||||
mbcico:
|
||||
L: Implement binkp option ND.
|
||||
|
||||
N: Overrule Down or Hold node is not possible.
|
||||
|
||||
mbfile:
|
||||
L: Possibility to skip file areas from checking and reindexing.
|
||||
|
||||
|
2
configure
vendored
2
configure
vendored
@ -1305,7 +1305,7 @@ SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbutils mbnntp mbtask mbsetup unix lang
|
||||
PACKAGE="mbsebbs"
|
||||
MAJOR="0"
|
||||
MINOR="71"
|
||||
REVISION="4"
|
||||
REVISION="5"
|
||||
VERSION="$MAJOR.$MINOR.$REVISION"
|
||||
COPYRIGHT="Copyright (C) 1997-2005 Michiel Broek, All Rights Reserved"
|
||||
SHORTRIGHT="Copyright (C) 1997-2005 M. Broek"
|
||||
|
@ -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')
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Purpose ...............: Nodes Setup Program
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2004
|
||||
* Copyright (C) 1997-2005
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
@ -810,6 +810,7 @@ void SessionScreen(void)
|
||||
mbse_mvprintw(17,41, "18. No Hydra");
|
||||
mbse_mvprintw(18,41, "19. Binkp old esc");
|
||||
mbse_mvprintw(19,41, "20. No binkp/1.1");
|
||||
mbse_mvprintw(20,41, "21. Ign. Hold");
|
||||
}
|
||||
|
||||
|
||||
@ -842,8 +843,9 @@ void SessionEdit(void)
|
||||
show_bool(17,61, nodes.NoHydra);
|
||||
show_bool(18,61, nodes.WrongEscape);
|
||||
show_bool(19,61, nodes.NoBinkp11);
|
||||
show_bool(20,61, nodes.IgnHold);
|
||||
|
||||
switch(select_menu(20)) {
|
||||
switch(select_menu(21)) {
|
||||
case 0: return;
|
||||
case 1: E_STR( 7,26,15, nodes.Spasswd, "The ^Session password^ for this node")
|
||||
case 2: E_STR( 8,26,40, nodes.dial, "If needed, give a special modem ^dial command^ for this node")
|
||||
@ -868,6 +870,7 @@ void SessionEdit(void)
|
||||
case 18:E_BOOL(17,61, nodes.NoHydra, "Disable ^Hydra^ protocol with this node")
|
||||
case 19:E_BOOL(18,61, nodes.WrongEscape, "Use the ^old escape^ for long filenames (Argus, Irex)")
|
||||
case 20:E_BOOL(19,61, nodes.NoBinkp11, "Disable ^binkp/1.1^ (fallback to binkp/1.0) mode for this node")
|
||||
case 21:E_BOOL(20,61, nodes.IgnHold, "Ignore node ^Hold or Down^ nodelist status")
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1540,7 +1543,7 @@ int node_doc(FILE *fp, FILE *toc, int page)
|
||||
add_webtable(wp, (char *)"No EMSI", getboolean(nodes.NoEMSI));
|
||||
fprintf(fp, " No YooHoo/2U2 %s", getboolean(nodes.NoWaZOO));
|
||||
add_webtable(wp, (char *)"No YooHoo/2U2", getboolean(nodes.NoWaZOO));
|
||||
fprintf(fp, " No Requests %s\n", getboolean(nodes.NoFreqs));
|
||||
fprintf(fp, " No Filerequests %s\n", getboolean(nodes.NoFreqs));
|
||||
add_webtable(wp, (char *)"No File Requests", getboolean(nodes.NoFreqs));
|
||||
fprintf(fp, " Don't call %s", getboolean(nodes.NoCall));
|
||||
add_webtable(wp, (char *)"Don't call", getboolean(nodes.NoCall));
|
||||
@ -1560,38 +1563,41 @@ int node_doc(FILE *fp, FILE *toc, int page)
|
||||
add_webtable(wp, (char *)"Binkp old esc method", getboolean(nodes.WrongEscape));
|
||||
fprintf(fp, " No binkp/1.1 %s", getboolean(nodes.NoBinkp11));
|
||||
add_webtable(wp, (char *)"No binkp/1.1 sessions", getboolean(nodes.NoBinkp11));
|
||||
fprintf(fp, " Mail forward %s", getboolean(nodes.MailFwd));
|
||||
fprintf(fp, " Ignore Hold/Down %s", getboolean(nodes.IgnHold));
|
||||
add_webtable(wp, (char *)"Ignore Hold/Down", getboolean(nodes.IgnHold));
|
||||
|
||||
fprintf(fp, " Mail forward %s\n", getboolean(nodes.MailFwd));
|
||||
add_webtable(wp, (char *)"Mail forward", getboolean(nodes.MailFwd));
|
||||
fprintf(fp, " Check mailpwd %s\n", getboolean(nodes.MailPwdCheck));
|
||||
fprintf(fp, " Check mailpwd %s", getboolean(nodes.MailPwdCheck));
|
||||
add_webtable(wp, (char *)"Check mailpassword", getboolean(nodes.MailPwdCheck));
|
||||
fprintf(fp, " ARCmail comp. %s", getboolean(nodes.ARCmailCompat));
|
||||
add_webtable(wp, (char *)" ARCmail compatibility", getboolean(nodes.ARCmailCompat));
|
||||
fprintf(fp, " ACRmail a..z %s", getboolean(nodes.ARCmailAlpha));
|
||||
fprintf(fp, " ACRmail a..z %s\n", getboolean(nodes.ARCmailAlpha));
|
||||
add_webtable(wp, (char *)"ACRmail a..z", getboolean(nodes.ARCmailAlpha));
|
||||
fprintf(fp, " Send message %s\n", getboolean(nodes.Message));
|
||||
fprintf(fp, " Send message %s", getboolean(nodes.Message));
|
||||
add_webtable(wp, (char *)"Send netmail with files", getboolean(nodes.Message));
|
||||
fprintf(fp, " Send .TIC %s", getboolean(nodes.Tic));
|
||||
add_webtable(wp, (char *)"Send .TIC files", getboolean(nodes.Tic));
|
||||
fprintf(fp, " File forward %s", getboolean(nodes.FileFwd));
|
||||
fprintf(fp, " File forward %s\n", getboolean(nodes.FileFwd));
|
||||
add_webtable(wp, (char *)"File forward", getboolean(nodes.FileFwd));
|
||||
fprintf(fp, " Advanced TIC %s\n", getboolean(nodes.AdvTic));
|
||||
fprintf(fp, " Advanced TIC %s", getboolean(nodes.AdvTic));
|
||||
add_webtable(wp, (char *)"Advanced TIC files", getboolean(nodes.AdvTic));
|
||||
fprintf(fp, " Advanded SB %s", getboolean(nodes.TIC_AdvSB));
|
||||
add_webtable(wp, (char *)" Advanded SB lines in .TIC", getboolean(nodes.TIC_AdvSB));
|
||||
fprintf(fp, " Sent To line %s", getboolean(nodes.TIC_To));
|
||||
fprintf(fp, " Sent To line %s\n", getboolean(nodes.TIC_To));
|
||||
add_webtable(wp, (char *)"Sent 'To' lines in .TIC", getboolean(nodes.TIC_To));
|
||||
fprintf(fp, " Security flags %s\n\n", getflag(nodes.Security.flags, nodes.Security.notflags));
|
||||
add_webtable(wp, (char *)"Security flags", getflag(nodes.Security.flags, nodes.Security.notflags));
|
||||
fprintf(wp, "<TR><TD colspan='2'> </TD></TR>\n");
|
||||
|
||||
fprintf(fp, " Outb session %s\n", get_sessiontype(nodes.Session_out));
|
||||
fprintf(fp, " Outbound session %s\n", get_sessiontype(nodes.Session_out));
|
||||
add_webtable(wp, (char *)"Outbound session", get_sessiontype(nodes.Session_out));
|
||||
if (nodes.Session_out == S_DIR) {
|
||||
fprintf(fp, " Path %s\n", nodes.Dir_out_path);
|
||||
add_webtable(wp, (char *)"Path", nodes.Dir_out_path);
|
||||
fprintf(fp, " Check lock %s", getboolean(nodes.Dir_out_chklck));
|
||||
add_webtable(wp, (char *)"Check lock", getboolean(nodes.Dir_out_chklck));
|
||||
fprintf(fp, " Wait clear lck %s\n", getboolean(nodes.Dir_out_waitclr));
|
||||
fprintf(fp, " Wait clear lock %s\n", getboolean(nodes.Dir_out_waitclr));
|
||||
add_webtable(wp, (char *)"Wait clear lock", getboolean(nodes.Dir_out_waitclr));
|
||||
if (nodes.Dir_out_chklck) {
|
||||
fprintf(fp, " File to check %s\n", nodes.Dir_out_clock);
|
||||
@ -1604,14 +1610,14 @@ int node_doc(FILE *fp, FILE *toc, int page)
|
||||
add_webtable(wp, (char *)"File to create", nodes.Dir_out_mlock);
|
||||
}
|
||||
}
|
||||
fprintf(fp, " Inb session %s\n", get_sessiontype(nodes.Session_in));
|
||||
fprintf(fp, " Inbound session %s\n", get_sessiontype(nodes.Session_in));
|
||||
add_webtable(wp, (char *)"Inbound session", get_sessiontype(nodes.Session_in));
|
||||
if (nodes.Session_in == S_DIR) {
|
||||
fprintf(fp, " Path %s\n", nodes.Dir_in_path);
|
||||
add_webtable(wp, (char *)"Path", nodes.Dir_in_path);
|
||||
fprintf(fp, " Check lock %s", getboolean(nodes.Dir_in_chklck));
|
||||
add_webtable(wp, (char *)"Check lock", getboolean(nodes.Dir_in_chklck));
|
||||
fprintf(fp, " Wait clear lck %s\n", getboolean(nodes.Dir_in_waitclr));
|
||||
fprintf(fp, " Wait clear lock %s\n", getboolean(nodes.Dir_in_waitclr));
|
||||
add_webtable(wp, (char *)"Wait clear lock", getboolean(nodes.Dir_in_waitclr));
|
||||
if (nodes.Dir_in_chklck) {
|
||||
fprintf(fp, " File to check %s\n", nodes.Dir_in_clock);
|
||||
|
Reference in New Issue
Block a user