Fixed filemgr tick=on crash, added auto echomail area create

This commit is contained in:
Michiel Broek
2002-02-14 21:24:27 +00:00
parent 598b6c2600
commit 62f10ff407
11 changed files with 185 additions and 146 deletions

View File

@@ -30,6 +30,7 @@
#include "libs.h"
#include "structs.h"
#include "common.h"
#include "users.h"
#include "records.h"
#include "clcomm.h"
@@ -81,6 +82,22 @@ int TestNode(fidoaddr aka)
}
int SearchNodeFaddr(faddr *n)
{
fidoaddr Sys;
memset(&Sys, 0, sizeof(Sys));
Sys.zone = n->zone;
Sys.net = n->net;
Sys.node = n->node;
Sys.point = n->point;
if (n->domain != NULL)
strncpy(Sys.domain, n->domain, 12);
return SearchNode(Sys);
}
int SearchNode(fidoaddr aka)
{

View File

@@ -1,3 +1,5 @@
/* $Id$ */
#ifndef _DBNODE_H
#define _DBNODE_H
@@ -8,6 +10,7 @@ int nodes_cnt; /* Node records in database */
int InitNode(void); /* Initialize nodes database */
int TestNode(fidoaddr); /* Check if noderecord is loaded */
int SearchNodeFaddr(faddr *); /* Search specified node and load */
int SearchNode(fidoaddr); /* Search specified node and load */
int UpdateNode(void); /* Update record if changed. */
char *GetNodeMailGrp(int); /* Get nodes mailgroup record */

View File

@@ -30,6 +30,7 @@
#include "libs.h"
#include "structs.h"
#include "common.h"
#include "users.h"
#include "records.h"
#include "dbnode.h"