ignore find_routes if there is no irc server config'ed

dev
Tom Early 2 years ago
parent d73c59ba9c
commit 80bec7ff0b

@ -312,13 +312,16 @@ bool CQnetGateway::ReadConfig(char *cfgFile)
cfg.GetValue(path+"url", estr, Rptr.mod[m].url, 0, 80); cfg.GetValue(path+"url", estr, Rptr.mod[m].url, 0, 80);
} }
} }
path.append("find_route"); if (ircddb[0].ip.size() + ircddb[1].ip.size() > 0) // there has to be an irc server
if (cfg.KeyExists(path))
{ {
std::string csv; path.append("find_route");
cfg.GetValue(path, estr, csv, 0, 10240); if (cfg.KeyExists(path))
UnpackCallsigns(csv, findRoute); {
PrintCallsigns(path, findRoute); std::string csv;
cfg.GetValue(path, estr, csv, 0, 10240);
UnpackCallsigns(csv, findRoute);
PrintCallsigns(path, findRoute);
}
} }
// APRS // APRS

Loading…
Cancel
Save

Powered by TurnKey Linux.