summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-01-07 19:16:59 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-01-07 19:16:59 +0000
commitb9cf14359a252921ea1fa08dcbbc3b710f92710d (patch)
tree501d88b16717117efe60dc24c93e91f44ece75c4 /src/core
parentef0cc3fecab4854cc6969abef89d82cff4f714ba (diff)
downloadirssi-b9cf14359a252921ea1fa08dcbbc3b710f92710d.zip
Make awaylog_file respect --home, bug #304.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4406 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-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);