mcabber/src/main.c
changeset 113 8ac67e951eab
parent 112 edb5591e2e64
child 120 cfd3df636d5f
--- a/mcabber/src/main.c	Sun Apr 24 17:38:48 2005 +0000
+++ b/mcabber/src/main.c	Sun Apr 24 20:24:18 2005 +0000
@@ -11,6 +11,7 @@
 #include "parsecfg.h"
 #include "roster.h"
 #include "commands.h"
+#include "histolog.h"
 #include "lang.h"
 #include "utils.h"
 #include "harddefines.h"
@@ -149,6 +150,10 @@
   ut_WriteLog("Drawing main window...\n");
   scr_DrawMainWindow();
 
+  optstring = cfg_read("logging");
+  if (optstring && (atoi(optstring) > 0))
+    hlog_enable(TRUE, cfg_read("logging_dir"));
+
   ssl = 0;
   optstring = cfg_read("ssl");
   if (optstring && (atoi(optstring) > 0))