From 59ecf1a40b13b72f045aaf9e7e64943341f563b4 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 29 Apr 2019 10:47:36 -0700 Subject: [PATCH] fixed default irc server config --- QnetGateway.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index a8e140e..838d86d 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -219,11 +219,9 @@ bool CQnetGateway::ReadConfig(char *cfgFile) path.assign("ircddb"); for (int i=0; i<2; i++) { std::string p(path + std::to_string(i) + "_"); - if (cfg.KeyExists(p+"host")) { - cfg.GetValue(p+"host", estr, ircddb[i].ip, 3, MAXHOSTNAMELEN); - cfg.GetValue(p+"port", estr, ircddb[i].port, 1000, 65535); - cfg.GetValue(p+"password", estr, IRCDDB_PASSWORD[i], 0, 512); - } + cfg.GetValue(p+"host", estr, ircddb[i].ip, 0, MAXHOSTNAMELEN); + cfg.GetValue(p+"port", estr, ircddb[i].port, 1000, 65535); + cfg.GetValue(p+"password", estr, IRCDDB_PASSWORD[i], 0, 512); } if (0 == ircddb[0].ip.compare(ircddb[1].ip)) { fprintf(stderr, "IRC networks must be different\n");