1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +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
+7 -1
View File
@@ -39,8 +39,14 @@ plugin_script_config_init (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script_data *plugin_data)
{
struct t_config_section *ptr_section;
char str_prio_name[PATH_MAX];
*(plugin_data->config_file) = weechat_config_new (weechat_plugin->name,
snprintf (str_prio_name, sizeof (str_prio_name),
"%d|%s",
weechat_plugin->priority,
weechat_plugin->name);
*(plugin_data->config_file) = weechat_config_new (str_prio_name,
NULL, NULL, NULL);
if (!(*plugin_data->config_file))
return 0;