Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit feda3066 authored by rswindell's avatar rswindell

Create sbbs_t::sysfaddr() to return nearest-match local system fidonet address (AKA)

parent 2b46c12d
......@@ -130,3 +130,16 @@ faddr_t atofaddr(scfg_t* cfg, char *str)
addr.point=atoi(p+1);
return(addr);
}
uint sbbs_t::sysfaddr(faddr_t dest_addr)
{
uint i;
for(i=0; i<cfg.total_faddrs; i++)
if(dest_addr.zone == cfg.faddr[i].zone && dest_addr.net == cfg.faddr[i].net)
return i;
for(i=0; i<cfg.total_faddrs; i++)
if(dest_addr.zone == cfg.faddr[i].zone)
return i;
return 0;
}
......@@ -1081,6 +1081,7 @@ public:
bool inetmail(const char *into, const char *subj = NULL, long mode = WM_NONE, smb_t* resmb = NULL, smbmsg_t* remsg = NULL, str_list_t cc = NULL);
bool qnetmail(const char *into, const char *subj = NULL, long mode = WM_NONE, smb_t* resmb = NULL, smbmsg_t* remsg = NULL);
uint sysfaddr(faddr_t dest_addr);
/* useredit.cpp */
void useredit(int usernumber);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment