Mercurial > ~mikael > mcabber > hg
diff mcabber/src/histolog.c @ 177:a51ce78a0e2a
[/trunk] Changeset 189 by mikael
* Add a "load_logs" variable to enable logs reading.
(Actual reading is not implemented yet...)
author | mikael |
---|---|
date | Thu, 05 May 2005 08:53:49 +0000 |
parents | 0ed6099b5a54 |
children | cfefae4b6de9 |
line wrap: on
line diff
--- a/mcabber/src/histolog.c Thu May 05 08:52:40 2005 +0000 +++ b/mcabber/src/histolog.c Thu May 05 08:53:49 2005 +0000 @@ -32,6 +32,7 @@ #include "screen.h" static guint UseFileLogging; +static guint FileLoadLogs; static char *RootDir; @@ -96,11 +97,13 @@ // hlog_enable() // Enable logging to files. If root_dir is NULL, then $HOME/.mcabber is used. -void hlog_enable(guint enable, char *root_dir) +// If loadfiles is TRUE, we will try to load buddies history logs from file. +void hlog_enable(guint enable, char *root_dir, guint loadfiles) { UseFileLogging = enable; + FileLoadLogs = loadfiles; - if (enable) { + if (enable || loadfiles) { if (root_dir) { int l = strlen(root_dir); if (l < 1) {