ignore find_routes if there is no irc server config'ed

dev
Tom Early 2 years ago
parent d73c59ba9c
commit 80bec7ff0b

@ -312,6 +312,8 @@ 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);
} }
} }
if (ircddb[0].ip.size() + ircddb[1].ip.size() > 0) // there has to be an irc server
{
path.append("find_route"); path.append("find_route");
if (cfg.KeyExists(path)) if (cfg.KeyExists(path))
{ {
@ -320,6 +322,7 @@ bool CQnetGateway::ReadConfig(char *cfgFile)
UnpackCallsigns(csv, findRoute); UnpackCallsigns(csv, findRoute);
PrintCallsigns(path, findRoute); PrintCallsigns(path, findRoute);
} }
}
// APRS // APRS
path.assign("aprs_"); path.assign("aprs_");

Loading…
Cancel
Save

Powered by TurnKey Linux.