]> jfr.im git - irc/blitzed-org/bopm.git/commitdiff
config.c: DEBUG level 3 now also prints out LISTS with other config elements
authorstrtok <redacted>
Sat, 16 Feb 2002 18:35:55 +0000 (18:35 +0000)
committerstrtok <redacted>
Sat, 16 Feb 2002 18:35:55 +0000 (18:35 +0000)
config.c

index 3e9703421f49aafd3794323b4490cb3d7347348e..734ec87d76b4451b2c4bcf6ebfed7c861968723a 100644 (file)
--- a/config.c
+++ b/config.c
@@ -221,6 +221,7 @@ void config_checkreq()
 {
       int i;
       int errfnd = 0;
+      string_list *list;
 
       for(i = 0; i < (sizeof(hash) / sizeof(config_hash) - 1); i++)
         if(hash[i].req && !hash[i].reqmet)
@@ -238,6 +239,10 @@ void config_checkreq()
                  case TYPE_INT:
                       log("CONFIG -> Set [%s]: %d", hash[i].key, *(int *) hash[i].var);
                       break;
+                 case TYPE_LIST:
+                      for(list = *(string_list**) (hash[i].var); list; list = list->next)
+                         log("CONFIG-> Set [%s]: %s", hash[i].key, list->text);
+                      break;
              }
          }