Mercurial > hg > nnchat
comparison main.c @ 678:75daa6ec65df
Fix to match changes in th-libs API.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 04 Jun 2018 03:00:11 +0300 |
parents | f40d5613c753 |
children | ceb73b712121 |
comparison
equal
deleted
inserted
replaced
677:f40d5613c753 | 678:75daa6ec65df |
---|---|
298 argShowHelp(); | 298 argShowHelp(); |
299 exit(0); | 299 exit(0); |
300 break; | 300 break; |
301 | 301 |
302 case 1: | 302 case 1: |
303 th_verbosityLevel++; | 303 th_verbosity++; |
304 break; | 304 break; |
305 | 305 |
306 case 2: | 306 case 2: |
307 optPort = atoi(optArg); | 307 optPort = atoi(optArg); |
308 break; | 308 break; |
1959 | 1959 |
1960 // Initialize | 1960 // Initialize |
1961 th_init("NNChat", "Newbie Nudes chat client", NN_VERSION, | 1961 th_init("NNChat", "Newbie Nudes chat client", NN_VERSION, |
1962 "Written and designed by Anonymous Finnish Guy (C) 2008-2016", | 1962 "Written and designed by Anonymous Finnish Guy (C) 2008-2016", |
1963 "This software is freeware, use and distribute as you wish."); | 1963 "This software is freeware, use and distribute as you wish."); |
1964 th_verbosityLevel = 0; | 1964 |
1965 th_verbosity = 0; | |
1965 | 1966 |
1966 // Read configuration file | 1967 // Read configuration file |
1967 tmpcfg = NULL; | 1968 tmpcfg = NULL; |
1968 th_cfg_add_comment(&tmpcfg, "General settings"); | 1969 th_cfg_add_comment(&tmpcfg, "General settings"); |
1969 th_cfg_add_string(&tmpcfg, "username", &optUserName, NULL); | 1970 th_cfg_add_string(&tmpcfg, "username", &optUserName, NULL); |