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);
}
}
path.append("find_route");
if (cfg.KeyExists(path))
if (ircddb[0].ip.size() + ircddb[1].ip.size() > 0) // there has to be an irc server
{
std::string csv;
cfg.GetValue(path, estr, csv, 0, 10240);
UnpackCallsigns(csv, findRoute);
PrintCallsigns(path, findRoute);
path.append("find_route");
if (cfg.KeyExists(path))
{
std::string csv;
cfg.GetValue(path, estr, csv, 0, 10240);
UnpackCallsigns(csv, findRoute);
PrintCallsigns(path, findRoute);
}
}
// APRS

Loading…
Cancel
Save

Powered by TurnKey Linux.