Mercurial > hg > nnchat
comparison nnchat.c @ 148:9da39d090ef1
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Nov 2010 22:50:32 +0200 |
parents | 77c35cdd5ce3 |
children | a4d6707161a7 |
comparison
equal
deleted
inserted
replaced
147:77c35cdd5ce3 | 148:9da39d090ef1 |
---|---|
814 "This software is freeware, use and distribute as you wish."); | 814 "This software is freeware, use and distribute as you wish."); |
815 th_verbosityLevel = 0; | 815 th_verbosityLevel = 0; |
816 | 816 |
817 /* Read config */ | 817 /* Read config */ |
818 { | 818 { |
819 cfgitem_t *tmpcfg = NULL; | 819 cfgitem_t *tmpcfg; |
820 FILE *cfgfile; | 820 FILE *cfgfile; |
821 char *homeDir; | 821 char *homeDir; |
822 | 822 |
823 #ifdef __WIN32 | 823 #ifdef __WIN32 |
824 | 824 |
831 else | 831 else |
832 setConfigFile = th_strdup(SET_CONFIG_FILE); | 832 setConfigFile = th_strdup(SET_CONFIG_FILE); |
833 | 833 |
834 THMSG(0, "Reading configuration from '%s'.\n", setConfigFile); | 834 THMSG(0, "Reading configuration from '%s'.\n", setConfigFile); |
835 | 835 |
836 tmpcfg = NULL; | |
836 th_cfg_add_comment(&tmpcfg, "General settings"); | 837 th_cfg_add_comment(&tmpcfg, "General settings"); |
837 th_cfg_add_string(&tmpcfg, "username", &optUserName, NULL); | 838 th_cfg_add_string(&tmpcfg, "username", &optUserName, NULL); |
838 th_cfg_add_string(&tmpcfg, "password", &optPassword, NULL); | 839 th_cfg_add_string(&tmpcfg, "password", &optPassword, NULL); |
839 th_cfg_add_hexvalue(&tmpcfg, "color", &optUserColor, optUserColor); | 840 th_cfg_add_hexvalue(&tmpcfg, "color", &optUserColor, optUserColor); |
840 th_cfg_add_section(&cfg, "general", tmpcfg); | 841 th_cfg_add_section(&cfg, "general", tmpcfg); |