Mercurial > hg > nnchat
changeset 247:fce4e2e31d69
Add the config section ...
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 20 Apr 2011 18:59:42 +0300 |
parents | 517c7b22b3c9 |
children | 9fcb55bc1366 |
files | nnchat.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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 {