Mercurial > hg > nnchat
diff nnchat.c @ 247:fce4e2e31d69
Add the config section ...
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 20 Apr 2011 18:59:42 +0300 |
parents | cb86d7543be2 |
children | dcf78e2c458c |
line wrap: on
line diff
--- 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 {