# HG changeset patch # User Matti Hamalainen # Date 1303315182 -10800 # Node ID fce4e2e31d693dd29c1013b2d1326ebd86259f94 # Parent 517c7b22b3c97a8356818f7c225e423c6e97a8c6 Add the config section ... diff -r 517c7b22b3c9 -r fce4e2e31d69 nnchat.c --- a/nnchat.c Wed Apr 20 18:55:19 2011 +0300 +++ b/nnchat.c Wed Apr 20 18:59:42 2011 +0300 @@ -1081,9 +1081,10 @@ tmpcfg = NULL; th_cfg_add_comment(&tmpcfg, "Enable logging"); - th_cfg_add_bool(&tmpcfg, "log", &optLogEnable, optLogEnable); + th_cfg_add_bool(&tmpcfg, "enable", &optLogEnable, optLogEnable); th_cfg_add_comment(&tmpcfg, "Log filename format"); - th_cfg_add_string(&tmpcfg, "logformat", &optLogFilename, optLogFilename); + th_cfg_add_string(&tmpcfg, "filename", &optLogFilename, optLogFilename); + th_cfg_add_section(&cfg, "logging", tmpcfg); #ifdef __WIN32 {