Changes for points calling

This commit is contained in:
Michiel Broek
2004-01-20 20:38:51 +00:00
parent b218f2f63a
commit e38e4b330c
2 changed files with 26 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
* Purpose ...............: Fidonet mailer
*
*****************************************************************************
* Copyright (C) 1997-2003
* Copyright (C) 1997-2004
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -109,11 +109,6 @@ int call(faddr *addr)
char *p, temp[81];
unsigned long cmmask;
/*
* Don't call points, call their boss instead.
*/
// addr->point = 0;
/*
* First check if node is locked, if not lock it immediatly
* or stop further waste of time and logfile space.
@@ -126,7 +121,17 @@ int call(faddr *addr)
if ((nlent = getnlent(addr)) == NULL) {
WriteError("Cannot call %s: fatal in nodelist lookup", ascfnode(addr, 0x1f));
putstatus(addr,0,MBERR_NODE_NOT_IN_LIST);
putstatus(addr,10,MBERR_NODE_NOT_IN_LIST);
nodeulock(addr, mypid);
return MBERR_NODE_NOT_IN_LIST;
}
/*
* Check if we got a URL to make the call.
*/
if (nlent->url == NULL) {
WriteError("Cannot call %s: no dialmethod available in nodelist", ascfnode(addr, 0x1f));
putstatus(addr,10,MBERR_NODE_NOT_IN_LIST);
nodeulock(addr, mypid);
return MBERR_NODE_NOT_IN_LIST;
}