mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 01:33:12 +02:00
core: apply filters after full reload of configuration files (with /reload) (bug #31182)
This commit is contained in:
@@ -221,34 +221,6 @@ gui_filter_global_disable ()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_filter_enable: enable a filter
|
||||
*/
|
||||
|
||||
void
|
||||
gui_filter_enable (struct t_gui_filter *filter)
|
||||
{
|
||||
if (filter && !filter->enabled)
|
||||
{
|
||||
filter->enabled = 1;
|
||||
gui_filter_all_buffers ();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_filter_disable: disable a filter
|
||||
*/
|
||||
|
||||
void
|
||||
gui_filter_disable (struct t_gui_filter *filter)
|
||||
{
|
||||
if (filter && filter->enabled)
|
||||
{
|
||||
filter->enabled = 0;
|
||||
gui_filter_all_buffers ();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_filter_search_by_name: search a filter by name
|
||||
*/
|
||||
@@ -382,8 +354,6 @@ gui_filter_new (int enabled, const char *name, const char *buffer_name,
|
||||
last_gui_filter = new_filter;
|
||||
new_filter->next_filter = NULL;
|
||||
|
||||
gui_filter_all_buffers ();
|
||||
|
||||
hook_signal_send ("filter_added",
|
||||
WEECHAT_HOOK_SIGNAL_POINTER, new_filter);
|
||||
}
|
||||
@@ -456,8 +426,6 @@ gui_filter_free (struct t_gui_filter *filter)
|
||||
|
||||
free (filter);
|
||||
|
||||
gui_filter_all_buffers ();
|
||||
|
||||
hook_signal_send ("filter_removed", WEECHAT_HOOK_SIGNAL_STRING, NULL);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,10 +55,9 @@ extern int gui_filters_enabled;
|
||||
|
||||
extern int gui_filter_check_line (struct t_gui_line *line,
|
||||
const char *buffer_full_name);
|
||||
extern void gui_filter_all_buffers ();
|
||||
extern void gui_filter_global_enable ();
|
||||
extern void gui_filter_global_disable ();
|
||||
extern void gui_filter_enable (struct t_gui_filter *filter);
|
||||
extern void gui_filter_disable (struct t_gui_filter *filter);
|
||||
extern struct t_gui_filter *gui_filter_search_by_name (const char *name);
|
||||
extern struct t_gui_filter *gui_filter_new (int enabled,
|
||||
const char *name,
|
||||
|
||||
Reference in New Issue
Block a user