From 7bc6d96bf6448b1d9b5ec348c3f4fb4897f70110 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 27 Oct 2015 19:28:04 -0400 Subject: [PATCH] fixed problem with REF login in g2_link --- g2_link.cpp | 14 ++++++++------ versions.h | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/g2_link.cpp b/g2_link.cpp index 52213cc..94b4920 100644 --- a/g2_link.cpp +++ b/g2_link.cpp @@ -850,24 +850,26 @@ static bool read_config(char *cfgFile) } string value; - if (cfg.lookupValue("g2_link.ref_login", value) || cfg.lookupValue("ircddb.login", value)) { - int l = value.length(); + string key = "g2_link.ref.login"; + if (cfg.lookupValue(key, login_call) || cfg.lookupValue("ircddb.login", login_call)) { + int l = login_call.length(); if (l<3 || l>CALL_SIZE-2) { - traceit("Call '%s' is invalid length!\n", value.c_str()); + traceit("Call '%s' is invalid length!\n", login_call.c_str()); return 1; } else { for (i=0; i