comparison mcabber/src/main.c @ 160:44c6410b4845

[/trunk] Changeset 172 by mikael * External command for events. * Add a config file option "events_command". * TODO update.
author mikael
date Mon, 02 May 2005 12:07:46 +0000
parents 439b750d99fa
children a8f7dc0a56cb
comparison
equal deleted inserted replaced
159:ba51d1737086 160:44c6410b4845
155 155
156 optstring = cfg_read("logging"); 156 optstring = cfg_read("logging");
157 if (optstring && (atoi(optstring) > 0)) 157 if (optstring && (atoi(optstring) > 0))
158 hlog_enable(TRUE, cfg_read("logging_dir")); 158 hlog_enable(TRUE, cfg_read("logging_dir"));
159 159
160 if ((optstring = cfg_read("events_command")) != NULL)
161 hk_ext_cmd_init(optstring);
162
160 ssl = 0; 163 ssl = 0;
161 optstring = cfg_read("ssl"); 164 optstring = cfg_read("ssl");
162 if (optstring && (atoi(optstring) > 0)) 165 if (optstring && (atoi(optstring) > 0))
163 ssl = 1; 166 ssl = 1;
164 portstring = cfg_read("port"); 167 portstring = cfg_read("port");