Fixed filemgr tick=on crash, added auto echomail area create
This commit is contained in:
17
lib/dbnode.c
17
lib/dbnode.c
@@ -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)
|
||||
{
|
||||
|
@@ -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 */
|
||||
|
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "libs.h"
|
||||
#include "structs.h"
|
||||
#include "common.h"
|
||||
#include "users.h"
|
||||
#include "records.h"
|
||||
#include "dbnode.h"
|
||||
|
Reference in New Issue
Block a user