From b9cf14359a252921ea1fa08dcbbc3b710f92710d Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 7 Jan 2007 19:16:59 +0000 Subject: [PATCH] Make awaylog_file respect --home, bug #304. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4406 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/log-away.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);