mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
Don't compute log_dir_create_mode in three different places.
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
This commit is contained in:
parent
437fbef6eb
commit
e08e2bd87a
4 changed files with 5 additions and 20 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "module.h"
|
||||
#include "rawlog.h"
|
||||
#include "log.h"
|
||||
#include "modules.h"
|
||||
#include "signals.h"
|
||||
#include "commands.h"
|
||||
|
|
@ -31,8 +32,6 @@
|
|||
|
||||
static int rawlog_lines;
|
||||
static int signal_rawlog;
|
||||
static int log_file_create_mode;
|
||||
static int log_dir_create_mode;
|
||||
|
||||
RAWLOG_REC *rawlog_create(void)
|
||||
{
|
||||
|
|
@ -174,12 +173,6 @@ void rawlog_set_size(int lines)
|
|||
static void read_settings(void)
|
||||
{
|
||||
rawlog_set_size(settings_get_int("rawlog_lines"));
|
||||
log_file_create_mode = octal2dec(settings_get_int("log_create_mode"));
|
||||
log_dir_create_mode = log_file_create_mode;
|
||||
if (log_file_create_mode & 0400) log_dir_create_mode |= 0100;
|
||||
if (log_file_create_mode & 0040) log_dir_create_mode |= 0010;
|
||||
if (log_file_create_mode & 0004) log_dir_create_mode |= 0001;
|
||||
|
||||
}
|
||||
|
||||
static void cmd_rawlog(const char *data, SERVER_REC *server, void *item)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue