summaryrefslogtreecommitdiff
path: root/src/plugins/fset
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-01-12 07:38:01 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-01-28 15:13:34 +0100
commit202b4d82c0b233a891e9e1a303833c15ae86e1d4 (patch)
tree74d6313c5ae93957adba3cd4f7d4f615d533d0c3 /src/plugins/fset
parent9174ec979b4cdd7d06f973c096636a833cbb0188 (diff)
downloadweechat-202b4d82c0b233a891e9e1a303833c15ae86e1d4.zip
plugins: set priority in calls to weechat_config_new (issue #1872)
Diffstat (limited to 'src/plugins/fset')
-rw-r--r--src/plugins/fset/fset-config.c2
-rw-r--r--src/plugins/fset/fset-config.h1
-rw-r--r--src/plugins/fset/fset.c2
-rw-r--r--src/plugins/fset/fset.h1
4 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/fset/fset-config.c b/src/plugins/fset/fset-config.c
index 13de7038e..be6a4e284 100644
--- a/src/plugins/fset/fset-config.c
+++ b/src/plugins/fset/fset-config.c
@@ -365,7 +365,7 @@ fset_config_init ()
{
struct t_config_section *ptr_section;
- fset_config_file = weechat_config_new (FSET_CONFIG_NAME,
+ fset_config_file = weechat_config_new (FSET_CONFIG_PRIO_NAME,
&fset_config_reload, NULL, NULL);
if (!fset_config_file)
return 0;
diff --git a/src/plugins/fset/fset-config.h b/src/plugins/fset/fset-config.h
index 960962a1e..75cf3f16a 100644
--- a/src/plugins/fset/fset-config.h
+++ b/src/plugins/fset/fset-config.h
@@ -21,6 +21,7 @@
#define WEECHAT_PLUGIN_FSET_CONFIG_H
#define FSET_CONFIG_NAME "fset"
+#define FSET_CONFIG_PRIO_NAME (TO_STR(FSET_PLUGIN_PRIORITY) "|" FSET_CONFIG_NAME)
extern struct t_config_file *fset_config_file;
diff --git a/src/plugins/fset/fset.c b/src/plugins/fset/fset.c
index 6b9a15918..7c99bf19a 100644
--- a/src/plugins/fset/fset.c
+++ b/src/plugins/fset/fset.c
@@ -40,7 +40,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Fast set of WeeChat and plugins options"));
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
-WEECHAT_PLUGIN_PRIORITY(2000);
+WEECHAT_PLUGIN_PRIORITY(FSET_PLUGIN_PRIORITY);
struct t_weechat_plugin *weechat_fset_plugin = NULL;
diff --git a/src/plugins/fset/fset.h b/src/plugins/fset/fset.h
index 6462aa88c..e94a49d9f 100644
--- a/src/plugins/fset/fset.h
+++ b/src/plugins/fset/fset.h
@@ -22,6 +22,7 @@
#define weechat_plugin weechat_fset_plugin
#define FSET_PLUGIN_NAME "fset"
+#define FSET_PLUGIN_PRIORITY 2000
#define FSET_BAR_NAME "fset"