mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02:00
Make awaylog_file respect --home, bug #304.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4406 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ef0cc3feca
commit
b9cf14359a
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue