summaryrefslogtreecommitdiff
path: root/src/plugins/spell
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/spell
parent9174ec979b4cdd7d06f973c096636a833cbb0188 (diff)
downloadweechat-202b4d82c0b233a891e9e1a303833c15ae86e1d4.zip
plugins: set priority in calls to weechat_config_new (issue #1872)
Diffstat (limited to 'src/plugins/spell')
-rw-r--r--src/plugins/spell/spell-config.c2
-rw-r--r--src/plugins/spell/spell-config.h2
-rw-r--r--src/plugins/spell/spell.c2
-rw-r--r--src/plugins/spell/spell.h1
4 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/spell/spell-config.c b/src/plugins/spell/spell-config.c
index 4e112f0f8..c31ef3bf7 100644
--- a/src/plugins/spell/spell-config.c
+++ b/src/plugins/spell/spell-config.c
@@ -441,7 +441,7 @@ spell_config_init ()
{
struct t_config_section *ptr_section;
- spell_config_file = weechat_config_new (SPELL_CONFIG_NAME,
+ spell_config_file = weechat_config_new (SPELL_CONFIG_PRIO_NAME,
NULL, NULL, NULL);
if (!spell_config_file)
return 0;
diff --git a/src/plugins/spell/spell-config.h b/src/plugins/spell/spell-config.h
index a27720f34..f1fad2871 100644
--- a/src/plugins/spell/spell-config.h
+++ b/src/plugins/spell/spell-config.h
@@ -22,7 +22,7 @@
#define WEECHAT_PLUGIN_SPELL_CONFIG_H
#define SPELL_CONFIG_NAME "spell"
-
+#define SPELL_CONFIG_PRIO_NAME (TO_STR(SPELL_PLUGIN_PRIORITY) "|" SPELL_CONFIG_NAME)
extern struct t_config_option *spell_config_color_misspelled;
extern struct t_config_option *spell_config_color_suggestion;
diff --git a/src/plugins/spell/spell.c b/src/plugins/spell/spell.c
index 3bf011ec0..c1e02c6a0 100644
--- a/src/plugins/spell/spell.c
+++ b/src/plugins/spell/spell.c
@@ -48,7 +48,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Spell checker for input"));
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
-WEECHAT_PLUGIN_PRIORITY(12000);
+WEECHAT_PLUGIN_PRIORITY(SPELL_PLUGIN_PRIORITY);
struct t_weechat_plugin *weechat_spell_plugin = NULL;
diff --git a/src/plugins/spell/spell.h b/src/plugins/spell/spell.h
index 916e0a05a..b582eff65 100644
--- a/src/plugins/spell/spell.h
+++ b/src/plugins/spell/spell.h
@@ -29,6 +29,7 @@
#define weechat_plugin weechat_spell_plugin
#define SPELL_PLUGIN_NAME "spell"
+#define SPELL_PLUGIN_PRIORITY 12000
struct t_spell_code
{