diff 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
line wrap: on
line diff
--- a/mcabber/mcabber/main.c	Mon Jan 18 16:32:02 2010 +0200
+++ b/mcabber/mcabber/main.c	Mon Jan 18 17:49:30 2010 +0200
@@ -358,6 +358,7 @@
   caps_init();
   /* Initialize charset */
   scr_InitLocaleCharSet();
+  ut_InitDebug();
 
   /* Parsing config file... */
   ret = cfg_read_file(configFile, TRUE);
@@ -367,10 +368,6 @@
   if (ret == -2)
     exit(EXIT_FAILURE);
 
-  optstring = settings_opt_get("tracelog_file");
-  if (optstring)
-    ut_InitDebug(settings_opt_get_int("tracelog_level"), optstring);
-
   /* If no password is stored, we ask for it before entering
      ncurses mode -- unless the username is unknown. */
   if (settings_opt_get("jid") && !settings_opt_get("password")) {