diff --git a/g2_ircddb.cpp b/g2_ircddb.cpp index 85f3606..07b434e 100644 --- a/g2_ircddb.cpp +++ b/g2_ircddb.cpp @@ -386,15 +386,17 @@ static int read_config(char *cfgFile) path += m + 'a'; std::string type; if (cfg.lookupValue(std::string(path+".type").c_str(), type)) { - if (strcasecmp(type.c_str(), "dvap") && strcasecmp(type.c_str(), "dvrptr")) { + if (strcasecmp(type.c_str(), "dvap") && strcasecmp(type.c_str(), "dvrptr") && strcasecmp(type.c_str(), "mmdvm")) { traceit("%s.type '%s' is invalid\n", type.c_str()); return 1; } rptr.mod[m].defined = true; if (0 == strcasecmp(type.c_str(), "dvap")) rptr.mod[m].package_version = DVAP_VERSION; - else + else if (0 == strcasecmp(type.c_str(), "dvrptr")) rptr.mod[m].package_version = DVRPTR_VERSION; + else + rptr.mod[m].package_fersion = MMDVM_VERSION; if (! get_value(cfg, std::string(path+".ip").c_str(), rptr.mod[m].portip.ip, 7, IP_SIZE, "127.0.0.1")) return 1; get_value(cfg, std::string(path+".port").c_str(), rptr.mod[m].portip.port, 16000, 65535, 19998+m); diff --git a/versions.h b/versions.h index 6186ac9..932d713 100644 --- a/versions.h +++ b/versions.h @@ -3,3 +3,4 @@ #define LINK_VERSION "5.00" #define DVAP_VERSION "linux-dvap_rptr-5.0.0" #define DVRPTR_VERSION "linux-dvrptr-5.0.0" +#define MMDVM_VERSION "mmdvm-dvmega-0.0.0"