mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 01:03:14 +02:00
plugins: set priority in calls to weechat_config_new (issue #1872)
This commit is contained in:
@@ -686,7 +686,8 @@ trigger_config_init ()
|
||||
struct t_config_section *ptr_section;
|
||||
|
||||
trigger_config_file = weechat_config_new (
|
||||
TRIGGER_CONFIG_NAME, &trigger_config_reload_cb, NULL, NULL);
|
||||
TRIGGER_CONFIG_PRIO_NAME,
|
||||
&trigger_config_reload_cb, NULL, NULL);
|
||||
if (!trigger_config_file)
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#define WEECHAT_PLUGIN_TRIGGER_CONFIG_H
|
||||
|
||||
#define TRIGGER_CONFIG_NAME "trigger"
|
||||
#define TRIGGER_CONFIG_PRIO_NAME (TO_STR(TRIGGER_PLUGIN_PRIORITY) "|" TRIGGER_CONFIG_NAME)
|
||||
#define TRIGGER_CONFIG_SECTION_TRIGGER "trigger"
|
||||
|
||||
extern struct t_config_file *trigger_config_file;
|
||||
|
||||
@@ -39,7 +39,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Text replacement and command execution on events
|
||||
WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>");
|
||||
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
|
||||
WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE);
|
||||
WEECHAT_PLUGIN_PRIORITY(13000);
|
||||
WEECHAT_PLUGIN_PRIORITY(TRIGGER_PLUGIN_PRIORITY);
|
||||
|
||||
struct t_weechat_plugin *weechat_trigger_plugin = NULL;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#define weechat_plugin weechat_trigger_plugin
|
||||
#define TRIGGER_PLUGIN_NAME "trigger"
|
||||
#define TRIGGER_PLUGIN_PRIORITY 13000
|
||||
|
||||
#define TRIGGER_HOOK_DEFAULT_CONDITIONS "${...}"
|
||||
#define TRIGGER_HOOK_DEFAULT_REGEX "/abc/def"
|
||||
|
||||
Reference in New Issue
Block a user