mirror of
https://github.com/irssi/irssi.git
synced 2026-08-24 11:02:21 +02:00
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:
parent
7e619ed990
commit
2518737f84
4 changed files with 4 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue