Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/main.c @ 1674:f02e7076ccec
Use option guards for tracelog
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Mon, 18 Jan 2010 17:49:30 +0200 |
parents | 41c26b7d2890 |
children | e489ead6574a |
comparison
equal
deleted
inserted
replaced
1673:552da310b83e | 1674:f02e7076ccec |
---|---|
356 settings_init(); | 356 settings_init(); |
357 scr_init_bindings(); | 357 scr_init_bindings(); |
358 caps_init(); | 358 caps_init(); |
359 /* Initialize charset */ | 359 /* Initialize charset */ |
360 scr_InitLocaleCharSet(); | 360 scr_InitLocaleCharSet(); |
361 ut_InitDebug(); | |
361 | 362 |
362 /* Parsing config file... */ | 363 /* Parsing config file... */ |
363 ret = cfg_read_file(configFile, TRUE); | 364 ret = cfg_read_file(configFile, TRUE); |
364 /* free() configFile if it has been allocated during options parsing */ | 365 /* free() configFile if it has been allocated during options parsing */ |
365 g_free(configFile); | 366 g_free(configFile); |
366 /* Leave if there was an error in the config. file */ | 367 /* Leave if there was an error in the config. file */ |
367 if (ret == -2) | 368 if (ret == -2) |
368 exit(EXIT_FAILURE); | 369 exit(EXIT_FAILURE); |
369 | |
370 optstring = settings_opt_get("tracelog_file"); | |
371 if (optstring) | |
372 ut_InitDebug(settings_opt_get_int("tracelog_level"), optstring); | |
373 | 370 |
374 /* If no password is stored, we ask for it before entering | 371 /* If no password is stored, we ask for it before entering |
375 ncurses mode -- unless the username is unknown. */ | 372 ncurses mode -- unless the username is unknown. */ |
376 if (settings_opt_get("jid") && !settings_opt_get("password")) { | 373 if (settings_opt_get("jid") && !settings_opt_get("password")) { |
377 const char *p; | 374 const char *p; |