comparison mcabber/src/main.c @ 138:250f872c722f

[/trunk] Changeset 150 by mikael * Debug defaults to disabled, but can be enabled with the "debug" option.
author mikael
date Thu, 28 Apr 2005 18:47:43 +0000
parents ef898db62b79
children 9f74832eb4f8
comparison
equal deleted inserted replaced
137:b59cb0c97dfa 138:250f872c722f
82 int ret = 0; 82 int ret = 0;
83 83
84 credits(); 84 credits();
85 85
86 /* SET THIS >0 TO ENABLE LOG */ 86 /* SET THIS >0 TO ENABLE LOG */
87 ut_InitDebug(1); 87 ut_InitDebug(0, NULL);
88 88
89 ut_WriteLog("Setting signals handlers...\n"); 89 ut_WriteLog("Setting signals handlers...\n");
90 signal(SIGTERM, sig_handler); 90 signal(SIGTERM, sig_handler);
91 signal(SIGALRM, sig_handler); 91 signal(SIGALRM, sig_handler);
92 92
114 114
115 /* Parsing config file... */ 115 /* Parsing config file... */
116 ut_WriteLog("Parsing config file...\n"); 116 ut_WriteLog("Parsing config file...\n");
117 cfg_file(configFile); 117 cfg_file(configFile);
118 118
119 optstring = cfg_read("debug");
120 if (optstring)
121 ut_InitDebug(1, optstring);
122
119 servername = cfg_read("server"); 123 servername = cfg_read("server");
120 username = cfg_read("username"); 124 username = cfg_read("username");
121 password = cfg_read("password"); 125 password = cfg_read("password");
122 resource = cfg_read("resource"); 126 resource = cfg_read("resource");
123 127