1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

plugins: set priority in calls to weechat_config_new (issue #1872)

This commit is contained in:
Sébastien Helleu
2023-01-12 07:38:01 +01:00
parent 9174ec979b
commit 202b4d82c0
75 changed files with 127 additions and 51 deletions
+3 -2
View File
@@ -420,8 +420,9 @@ script_config_init ()
{
struct t_config_section *ptr_section;
script_config_file = weechat_config_new (SCRIPT_CONFIG_NAME,
&script_config_reload, NULL, NULL);
script_config_file = weechat_config_new (
SCRIPT_CONFIG_PRIO_NAME,
&script_config_reload, NULL, NULL);
if (!script_config_file)
return 0;
+1
View File
@@ -21,6 +21,7 @@
#define WEECHAT_PLUGIN_SCRIPT_CONFIG_H
#define SCRIPT_CONFIG_NAME "script"
#define SCRIPT_CONFIG_PRIO_NAME (TO_STR(SCRIPT_PLUGIN_PRIORITY) "|" SCRIPT_CONFIG_NAME)
struct t_script_repo;
+1 -1
View File
@@ -42,7 +42,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Script manager"));
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
WEECHAT_PLUGIN_PRIORITY(3000);
WEECHAT_PLUGIN_PRIORITY(SCRIPT_PLUGIN_PRIORITY);
struct t_weechat_plugin *weechat_script_plugin = NULL;
+1
View File
@@ -22,6 +22,7 @@
#define weechat_plugin weechat_script_plugin
#define SCRIPT_PLUGIN_NAME "script"
#define SCRIPT_PLUGIN_PRIORITY 3000
#define SCRIPT_NUM_LANGUAGES 8