New feature: AKAMATCHFROMTO

This commit is contained in:
Stas Degteff
2005-09-19 17:29:29 +00:00
parent a59225dfb6
commit 5d0bf484fc
9 changed files with 31 additions and 8 deletions

View File

@@ -686,6 +686,7 @@ CfgGed::CfgGed() {
adeptxbbsuserno = 0;
addressbookadd = YES;
addresslookupfirst = false;
akamatchfromto = false;
areaautoid = AUTOID_LONG;
areacopydirect = false;
areacopyaddid = false;

View File

@@ -36,6 +36,7 @@ const word CRC_ADEPTXBBSUSERNO = 0x0E98;
const word CRC_AKA = 0x13A4;
const word CRC_AKAMATCH = 0xF237;
const word CRC_AKAMATCHECHO = 0xF0C1;
const word CRC_AKAMATCHFROMTO = 0xD8B9;
const word CRC_AKAMATCHING = 0x869A;
const word CRC_AKAMATCHLOCAL = 0x4AC4;
const word CRC_AKAMATCHNET = 0xFD6E;

View File

@@ -190,6 +190,7 @@ SwitchA:
case CRC_ADEPTXBBSUSERNO : CfgAdeptxbbsuserno (); break;
case CRC_AKA : CfgAddress (); break;
case CRC_AKAMATCH : CfgAkamatch (); break;
case CRC_AKAMATCHFROMTO : CfgAkamatchfromto (); break;
case CRC_AKAMATCHING : CfgAkamatching (); break;
case CRC_AREAAUTOID : CfgAreaautoid (); break;
case CRC_AREACFMREPLYTO : CfgAreacfmreplyto (); break;

View File

@@ -83,12 +83,12 @@ void CfgAddresslookupfirst(){
else
CFG->addresslookupfirst = NO;
}
// ------------------------------------------------------------------
void CfgAddressmacro(char* v) { val = v; CfgAddressmacro(); }
void CfgAddressmacro() {
AddrMacro tmp;
tmp.attr.reset();
int subjwasquoted = NO;
@@ -175,6 +175,12 @@ void CfgAkamatch() {
// ------------------------------------------------------------------
void CfgAkamatchfromto() {
CFG->akamatchfromto = (0 != GetYesno(val));
}
// ------------------------------------------------------------------
void CfgAkamatching() {
if(cfgingroup) {
@@ -203,7 +209,7 @@ void CfgAreaautoid() {
}
// ------------------------------------------------------------------
void CfgAreacfmreplyto() {
strxcpy(CFG->areacfmreplyto, val, sizeof(Echo));
@@ -400,7 +406,7 @@ void CfgAreapmscanincl() {
// ------------------------------------------------------------------
void CfgAreareadonly() {
if(strieql(val, "Soft"))
CFG->areareadonly = READONLY_SOFT;
else if(strieql(val, "Hard"))

View File

@@ -39,6 +39,7 @@ void CfgAdeptxbbspath ();
void CfgAdeptxbbsuserno ();
void CfgAkamatch ();
void CfgAkamatchecho ();
void CfgAkamatchfromto ();
void CfgAkamatching ();
void CfgAkamatchlocal ();
void CfgAkamatchnet ();

View File

@@ -140,6 +140,7 @@ public:
int adeptxbbsuserno;
std::vector<gaka> aka;
std::vector<AkaMatchG> akamatch;
bool akamatchfromto;
int areaautoid;
Echo areacfmreplyto;
bool areacopydirect;
@@ -448,7 +449,7 @@ protected:
int hardline;
int spellchecker;
} cfg;
// -----------------------------------------------------------------
// String bag