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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user