diff --git a/qnconfig b/qnconfig index a749364..48a54df 100755 --- a/qnconfig +++ b/qnconfig @@ -265,7 +265,14 @@ IrcddbMenu () { if [[ "$key" == l* ]]; then ircddb_login="${value^^}" elif [[ "$key" == ha* ]]; then - if [[ "$value" =~ ^[a-zA-Z0-9]+\.[a-zA-Z0-9]+\.[a-zA-Z0-9]+$ ]]; then + if [ -z "$value"]; then + if [ -z "${ircddb1_host+x}" ]; then + ircddb0_host='' + else + echo "You cannot set an empty value for ha unless hb has its default value" + read -p " to continue: " garbage + fi + elif [[ "$value" =~ ^[a-zA-Z0-9]+\.[a-zA-Z0-9]+\.[a-zA-Z0-9]+$ ]]; then ircddb0_host="$value" else clear @@ -716,7 +723,7 @@ while [[ "$ans" != q* ]] do clear echo - echo " QnConfig Main Menu V#210207" + echo " QnConfig Main Menu V#210213" echo echo -n "a : Module A - "; if [ -z $module_a ]; then echo ""; else echo "${module_a^^}"; fi echo -n "b : Module B - "; if [ -z $module_b ]; then echo ""; else echo "${module_b^^}"; fi