summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/log-away.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/log-away.c b/src/core/log-away.c
index 586d17d4..233f3f59 100644
--- a/src/core/log-away.c
+++ b/src/core/log-away.c
@@ -98,11 +98,15 @@ static void sig_away_changed(SERVER_REC *server)
void log_away_init(void)
{
+ char *awaylog_file;
+
awaylog = NULL;
away_filepos = 0;
away_msgs = 0;
- settings_add_str("log", "awaylog_file", IRSSI_DIR_SHORT"/away.log");
+ awaylog_file = g_strconcat(get_irssi_dir(), "/away.log", NULL);
+ settings_add_str("log", "awaylog_file", awaylog_file);
+ g_free(awaylog_file);
settings_add_level("log", "awaylog_level", "msgs hilight");
signal_add("log written", (SIGNAL_FUNC) sig_log_written);