diff options
Diffstat (limited to 'src/plugins/trigger')
-rw-r--r-- | src/plugins/trigger/trigger-config.c | 3 | ||||
-rw-r--r-- | src/plugins/trigger/trigger-config.h | 1 | ||||
-rw-r--r-- | src/plugins/trigger/trigger.c | 2 | ||||
-rw-r--r-- | src/plugins/trigger/trigger.h | 1 |
4 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c index 641eb951d..001d7b958 100644 --- a/src/plugins/trigger/trigger-config.c +++ b/src/plugins/trigger/trigger-config.c @@ -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; diff --git a/src/plugins/trigger/trigger-config.h b/src/plugins/trigger/trigger-config.h index e364d5303..f4653af1d 100644 --- a/src/plugins/trigger/trigger-config.h +++ b/src/plugins/trigger/trigger-config.h @@ -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; diff --git a/src/plugins/trigger/trigger.c b/src/plugins/trigger/trigger.c index b9217f7bb..d5d998d2d 100644 --- a/src/plugins/trigger/trigger.c +++ b/src/plugins/trigger/trigger.c @@ -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; diff --git a/src/plugins/trigger/trigger.h b/src/plugins/trigger/trigger.h index 3c4804f43..0cc0afaf1 100644 --- a/src/plugins/trigger/trigger.h +++ b/src/plugins/trigger/trigger.h @@ -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" |