diff options
Diffstat (limited to 'src/plugins/logger')
-rw-r--r-- | src/plugins/logger/logger-config.c | 2 | ||||
-rw-r--r-- | src/plugins/logger/logger-config.h | 1 | ||||
-rw-r--r-- | src/plugins/logger/logger.c | 2 | ||||
-rw-r--r-- | src/plugins/logger/logger.h | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/logger/logger-config.c b/src/plugins/logger/logger-config.c index f2a50329c..d254cabe3 100644 --- a/src/plugins/logger/logger-config.c +++ b/src/plugins/logger/logger-config.c @@ -462,7 +462,7 @@ logger_config_init () { struct t_config_section *ptr_section; - logger_config_file = weechat_config_new (LOGGER_CONFIG_NAME, + logger_config_file = weechat_config_new (LOGGER_CONFIG_PRIO_NAME, NULL, NULL, NULL); if (!logger_config_file) return 0; diff --git a/src/plugins/logger/logger-config.h b/src/plugins/logger/logger-config.h index 0b4d5a6f2..45ec8aad5 100644 --- a/src/plugins/logger/logger-config.h +++ b/src/plugins/logger/logger-config.h @@ -21,6 +21,7 @@ #define WEECHAT_PLUGIN_LOGGER_CONFIG_H #define LOGGER_CONFIG_NAME "logger" +#define LOGGER_CONFIG_PRIO_NAME (TO_STR(LOGGER_PLUGIN_PRIORITY) "|" LOGGER_CONFIG_NAME) extern struct t_config_option *logger_config_look_backlog; extern struct t_config_option *logger_config_look_backlog_conditions; diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c index cdfb48f0b..ef817faa3 100644 --- a/src/plugins/logger/logger.c +++ b/src/plugins/logger/logger.c @@ -41,7 +41,7 @@ WEECHAT_PLUGIN_DESCRIPTION(N_("Log buffers to files")); WEECHAT_PLUGIN_AUTHOR("Sébastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); -WEECHAT_PLUGIN_PRIORITY(15000); +WEECHAT_PLUGIN_PRIORITY(LOGGER_PLUGIN_PRIORITY); struct t_weechat_plugin *weechat_logger_plugin = NULL; diff --git a/src/plugins/logger/logger.h b/src/plugins/logger/logger.h index 558c40315..e1b5a137e 100644 --- a/src/plugins/logger/logger.h +++ b/src/plugins/logger/logger.h @@ -22,6 +22,7 @@ #define weechat_plugin weechat_logger_plugin #define LOGGER_PLUGIN_NAME "logger" +#define LOGGER_PLUGIN_PRIORITY 15000 #define LOGGER_LEVEL_DEFAULT 9 |