mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 07:16:37 +02:00
core: display a message with command /filter toggle
The command has now the same output as `/filter enable` or `/filter disable`: /filter toggle => "Message filtering disabled" /filter toggle => "Message filtering enabled"
This commit is contained in:
@@ -2751,9 +2751,17 @@ COMMAND_CALLBACK(filter)
|
||||
else
|
||||
{
|
||||
if (gui_filters_enabled)
|
||||
{
|
||||
gui_filter_global_disable ();
|
||||
gui_chat_printf_date_tags (NULL, 0, GUI_FILTER_TAG_NO_FILTER,
|
||||
_("Message filtering disabled"));
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_filter_global_enable ();
|
||||
gui_chat_printf_date_tags (NULL, 0, GUI_FILTER_TAG_NO_FILTER,
|
||||
_("Message filtering enabled"));
|
||||
}
|
||||
}
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user