fixed finding lone configured module when another module is also there

pull/12/head
Tom Early 7 years ago
parent 4934b1466f
commit e418c976a0

@ -174,10 +174,8 @@ static bool read_config(const char *cfgFile)
test.append(1, 'a'+i); test.append(1, 'a'+i);
if (cfg.KeyExists(test)) { if (cfg.KeyExists(test)) {
cfg.GetValue(test, estr, type, 1, 16); cfg.GetValue(test, estr, type, 1, 16);
if (type.compare("dvap")) { if (type.compare("dvap"))
fprintf(stderr, "%s = '%s', expecting 'dvap'!\n", test.c_str(), type.c_str()); continue; // this ain't it!
return true;
}
dvap_path.assign(test); dvap_path.assign(test);
assigned_module = i; assigned_module = i;
break; break;

@ -1827,10 +1827,8 @@ static bool read_config(const char *cfgFile)
test.append(1, 'a'+i); test.append(1, 'a'+i);
if (cfg.KeyExists(test)) { if (cfg.KeyExists(test)) {
cfg.GetValue(test, estr, type, 1, 16); cfg.GetValue(test, estr, type, 1, 16);
if (type.compare("dvrptr")) { if (type.compare("dvrptr"))
fprintf(stderr, "%s = '%s', expecting 'dvrptr'!\n", test.c_str(), type.c_str()); continue; // this ain't it!
return true;
}
path.assign(test); path.assign(test);
assigned_module = i; assigned_module = i;
break; break;

@ -468,10 +468,8 @@ bool CQnetITAP::ReadConfig(const char *cfgFile)
test.append(1, 'a'+i); test.append(1, 'a'+i);
if (cfg.KeyExists(test)) { if (cfg.KeyExists(test)) {
cfg.GetValue(test, estr, type, 1, 16); cfg.GetValue(test, estr, type, 1, 16);
if (type.compare("itap")) { if (type.compare("itap"))
fprintf(stderr, "%s = '%s', expecting 'itap'!\n", test.c_str(), type.c_str()); continue; // this ain't it!
return true;
}
itap_path.assign(test); itap_path.assign(test);
assigned_module = i; assigned_module = i;
break; break;

@ -365,10 +365,8 @@ bool CQnetRelay::ReadConfig(const char *cfgFile)
test.append(1, 'a'+i); test.append(1, 'a'+i);
if (cfg.KeyExists(test)) { if (cfg.KeyExists(test)) {
cfg.GetValue(test, estr, type, 1, 16); cfg.GetValue(test, estr, type, 1, 16);
if (type.compare("mmdvm")) { if (type.compare("mmdvm"))
fprintf(stderr, "%s = '%s', expecting 'mmdvm'!\n", test.c_str(), type.c_str()); continue; // this ain't it!
return true;
}
mmdvm_path.assign(test); mmdvm_path.assign(test);
assigned_module = i; assigned_module = i;
break; break;

@ -1,8 +1,8 @@
// version strings must be 55 characters or less! // version strings must be 55 characters or less!
#define IRCDDB_VERSION "QnetGateway-8.0.1" #define IRCDDB_VERSION "QnetGateway-8.0.1"
#define LINK_VERSION "QnetLink7.0.1" #define LINK_VERSION "QnetLink7.0.1"
#define DVAP_VERSION "QnetDVAP-6.0.0" #define DVAP_VERSION "QnetDVAP-6.0.1"
#define RELAY_VERSION "QnetRelay-1.0.1" #define RELAY_VERSION "QnetRelay-1.0.2"
#define ITAP_VERSION "QnetITAP-1.0.1" #define ITAP_VERSION "QnetITAP-1.0.2"
#define DVRPTR_VERSION "QnetDVRPTR-6.0.1" #define DVRPTR_VERSION "QnetDVRPTR-6.0.2"
#define MMDVM_VERSION "QnetGateway-MMDVM-1.0.0" #define MMDVM_VERSION "QnetGateway-MMDVM-1.0.0"

Loading…
Cancel
Save

Powered by TurnKey Linux.