New config file token: AKAMatchManually

This commit is contained in:
Stas Degteff
2005-09-27 18:26:13 +00:00
parent e91beedb81
commit cdcef282fc
10 changed files with 29 additions and 2 deletions

View File

@@ -687,6 +687,7 @@ CfgGed::CfgGed() {
addressbookadd = YES;
addresslookupfirst = false;
akamatchfromto = NO;
akamatchmanually = false;
areaautoid = AUTOID_LONG;
areacopydirect = false;
areacopyaddid = false;

View File

@@ -39,6 +39,7 @@ const word CRC_AKAMATCHECHO = 0xF0C1;
const word CRC_AKAMATCHFROMTO = 0xD8B9;
const word CRC_AKAMATCHING = 0x869A;
const word CRC_AKAMATCHLOCAL = 0x4AC4;
const word CRC_AKAMATCHMANUALLY = 0x9F9C;
const word CRC_AKAMATCHNET = 0xFD6E;
const word CRC_AREA = 0x010B;
const word CRC_AREAAUTOID = 0x365D;

View File

@@ -192,6 +192,7 @@ SwitchA:
case CRC_AKAMATCH : CfgAkamatch (); break;
case CRC_AKAMATCHFROMTO : CfgAkamatchfromto (); break;
case CRC_AKAMATCHING : CfgAkamatching (); break;
case CRC_AKAMATCHMANUALLY : CfgAkamatchmanually (); break;
case CRC_AREAAUTOID : CfgAreaautoid (); break;
case CRC_AREACFMREPLYTO : CfgAreacfmreplyto (); break;
case CRC_AREACOPYADDID : CfgAreacopyaddid (); break;

View File

@@ -191,6 +191,13 @@ void CfgAkamatching() {
// ------------------------------------------------------------------
void CfgAkamatchmanually()
{
CFG->akamatchmanually = (0 != GetYesno(val));
}
// ------------------------------------------------------------------
void CfgArea() {
AL.GetArea(val);

View File

@@ -42,6 +42,7 @@ void CfgAkamatchecho ();
void CfgAkamatchfromto ();
void CfgAkamatching ();
void CfgAkamatchlocal ();
void CfgAkamatchmanually ();
void CfgAkamatchnet ();
void CfgArea ();
void CfgAreaautoid ();

View File

@@ -141,6 +141,7 @@ public:
std::vector<gaka> aka;
std::vector<AkaMatchG> akamatch;
int akamatchfromto;
bool akamatchmanually;
int areaautoid;
Echo areacfmreplyto;
bool areacopydirect;

View File

@@ -907,6 +907,8 @@ void MakeMsg(int mode, GMsg* omsg, bool ignore_replyto) {
AkaMatch(&aka_addr, &omsg->orig);
AA->SetAka(aka_addr);
}
if (CFG->akamatchmanually) ChangeAka();
}
if((mode == MODE_REPLYCOMMENT) and not omsg->fwdorig.net) {