mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 00:03:12 +02:00
core: set priority in calls to config_file_new (issue #1872)
This commit is contained in:
@@ -2635,7 +2635,7 @@ config_weechat_init_options ()
|
||||
char section_name[128];
|
||||
|
||||
weechat_config_file = config_file_new (
|
||||
NULL, WEECHAT_CONFIG_NAME, &config_weechat_reload_cb, NULL, NULL);
|
||||
NULL, WEECHAT_CONFIG_PRIO_NAME, &config_weechat_reload_cb, NULL, NULL);
|
||||
if (!weechat_config_file)
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
struct t_gui_buffer;
|
||||
|
||||
#define WEECHAT_CONFIG_NAME "weechat"
|
||||
#define WEECHAT_CONFIG_PRIO_NAME "110000|weechat"
|
||||
|
||||
#define TAB_MAX_WIDTH 64
|
||||
|
||||
|
||||
@@ -446,7 +446,7 @@ secure_config_init_options ()
|
||||
{
|
||||
struct t_config_section *ptr_section;
|
||||
|
||||
secure_config_file = config_file_new (NULL, SECURE_CONFIG_NAME,
|
||||
secure_config_file = config_file_new (NULL, SECURE_CONFIG_PRIO_NAME,
|
||||
&secure_config_reload_cb, NULL, NULL);
|
||||
if (!secure_config_file)
|
||||
return 0;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#define WEECHAT_SECURE_CONFIG_H
|
||||
|
||||
#define SECURE_CONFIG_NAME "sec"
|
||||
#define SECURE_CONFIG_PRIO_NAME "120000|sec"
|
||||
|
||||
extern struct t_config_file *secure_config_file;
|
||||
extern struct t_config_section *secure_config_section_pwd;
|
||||
|
||||
Reference in New Issue
Block a user