From 80bec7ff0b5c66feb3785e58f9cd6badbab23ab2 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Fri, 12 Apr 2024 17:58:56 -0700 Subject: [PATCH] ignore find_routes if there is no irc server config'ed --- QnetGateway.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 58d93eb..fb0c7e6 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -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