diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-11 18:36:06 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-11 18:36:06 +0200 |
commit | d975629686360821c020bb7304b7af1528a877f9 (patch) | |
tree | b021375ae20ae8dcffc9b18b86e3dc24ff538dc8 /src/plugins/logger | |
parent | 8211dd6043557f445bf664507fe6daf22a5aa694 (diff) | |
download | weechat-d975629686360821c020bb7304b7af1528a877f9.zip |
Improved /set command, added /unset command, new name for config files (*.conf)
Diffstat (limited to 'src/plugins/logger')
-rw-r--r-- | src/plugins/logger/logger.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c index c82eb9436..85b05f8c1 100644 --- a/src/plugins/logger/logger.c +++ b/src/plugins/logger/logger.c @@ -44,7 +44,7 @@ WEECHAT_PLUGIN_DESCRIPTION("Logger plugin for WeeChat"); WEECHAT_PLUGIN_AUTHOR("FlashCode <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_WEECHAT_VERSION(WEECHAT_VERSION); -WEECHAT_PLUGIN_LICENSE("GPL"); +WEECHAT_PLUGIN_LICENSE("GPL3"); struct t_weechat_plugin *weechat_logger_plugin = NULL; @@ -642,11 +642,10 @@ logger_print_cb (void *data, struct t_gui_buffer *buffer, time_t date, */ int -logger_config_cb (void *data, char *type, char *option, char *value) +logger_config_cb (void *data, char *option, char *value) { /* make C compiler happy */ (void) data; - (void) type; (void) option; (void) value; @@ -679,16 +678,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin) weechat_hook_print (NULL, NULL, NULL, 1, &logger_print_cb, NULL); - weechat_hook_config ("plugin", "logger." LOGGER_OPTION_PATH, - &logger_config_cb, NULL); - weechat_hook_config ("plugin", "logger." LOGGER_OPTION_NAME_LOWER_CASE, - &logger_config_cb, NULL); - weechat_hook_config ("plugin", "logger." LOGGER_OPTION_TIME_FORMAT, - &logger_config_cb, NULL); - weechat_hook_config ("plugin", "logger." LOGGER_OPTION_INFO_LINES, - &logger_config_cb, NULL); - weechat_hook_config ("plugin", "logger." LOGGER_OPTION_BACKLOG, - &logger_config_cb, NULL); + weechat_hook_config ("plugins.var.logger.*", &logger_config_cb, NULL); return WEECHAT_RC_OK; } |