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