mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 01:33:12 +02:00
plugins: set priority in calls to weechat_config_new (issue #1872)
This commit is contained in:
@@ -100,7 +100,7 @@ exec_config_init ()
|
||||
{
|
||||
struct t_config_section *ptr_section;
|
||||
|
||||
exec_config_file = weechat_config_new (EXEC_CONFIG_NAME,
|
||||
exec_config_file = weechat_config_new (EXEC_CONFIG_PRIO_NAME,
|
||||
&exec_config_reload_cb, NULL, NULL);
|
||||
if (!exec_config_file)
|
||||
return 0;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#define WEECHAT_PLUGIN_EXEC_CONFIG_H
|
||||
|
||||
#define EXEC_CONFIG_NAME "exec"
|
||||
#define EXEC_CONFIG_PRIO_NAME (TO_STR(EXEC_PLUGIN_PRIORITY) "|" EXEC_CONFIG_NAME)
|
||||
|
||||
extern struct t_config_file *exec_config_file;
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Execution of external commands in WeeChat"));
|
||||
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
|
||||
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
|
||||
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
|
||||
WEECHAT_PLUGIN_PRIORITY(14000);
|
||||
WEECHAT_PLUGIN_PRIORITY(EXEC_PLUGIN_PRIORITY);
|
||||
|
||||
struct t_weechat_plugin *weechat_exec_plugin = NULL;
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#define weechat_plugin weechat_exec_plugin
|
||||
#define EXEC_PLUGIN_NAME "exec"
|
||||
#define EXEC_PLUGIN_PRIORITY 14000
|
||||
|
||||
#define EXEC_STDOUT 0
|
||||
#define EXEC_STDERR 1
|
||||
|
||||
Reference in New Issue
Block a user