1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 01:33:12 +02:00

Fix /reload command (now reloads config files with no reload callback)

This commit is contained in:
Sebastien Helleu
2008-10-08 16:03:59 +02:00
parent 4f9843f84c
commit 0e053e072b
2 changed files with 10 additions and 25 deletions
-19
View File
@@ -572,23 +572,6 @@ logger_print_cb (void *data, struct t_gui_buffer *buffer, time_t date,
return WEECHAT_RC_OK;
}
/*
* logger_config_cb: callback for config hook
*/
int
logger_config_cb (void *data, const char *option, const char *value)
{
/* make C compiler happy */
(void) data;
(void) option;
(void) value;
logger_config_read ();
return WEECHAT_RC_OK;
}
/*
* weechat_plugin_init: initialize logger plugin
*/
@@ -618,8 +601,6 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
weechat_hook_print (NULL, NULL, NULL, 1, &logger_print_cb, NULL);
weechat_hook_config ("plugins.var.logger.*", &logger_config_cb, NULL);
logger_info_init ();
return WEECHAT_RC_OK;