Change the default awaylog_file to ~/irclogs/away.log.

The new location is more compatible with Capsicum sandboxing,
and also seems a bit more logical - it is, after all, a log file.

Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
This commit is contained in:
Edward Tomasz Napierala 2017-11-04 15:30:26 +00:00
commit 2518737f84
4 changed files with 4 additions and 9 deletions

View file

@ -105,15 +105,11 @@ static void sig_away_changed(SERVER_REC *server)
void log_away_init(void)
{
char *awaylog_file;
awaylog = NULL;
away_filepos = 0;
away_msgs = 0;
awaylog_file = g_strconcat(get_irssi_dir(), "/away.log", NULL);
settings_add_str("log", "awaylog_file", awaylog_file);
g_free(awaylog_file);
settings_add_str("log", "awaylog_file", "~/irclogs/away.log");
settings_add_level("log", "awaylog_level", "msgs hilight");
signal_add("log written", (SIGNAL_FUNC) sig_log_written);