mirror of
https://github.com/bettercap/bettercap
synced 2025-07-14 09:03:39 -07:00
add events.filters.clear command to clear events.filters list
This commit is contained in:
parent
a4aa5acbcd
commit
52bfe124ef
1 changed files with 7 additions and 0 deletions
|
@ -116,6 +116,13 @@ func NewEventsStream(s *session.Session) *EventsStream {
|
|||
return nil
|
||||
}))
|
||||
|
||||
mod.AddHandler(session.NewModuleHandler("events.filters.clear", "",
|
||||
"Clear the list of filters passed with the events.ignore command.",
|
||||
func(args []string) error {
|
||||
mod.ignoreList = NewIgnoreList()
|
||||
return nil
|
||||
}))
|
||||
|
||||
mod.AddHandler(session.NewModuleHandler("events.clear", "",
|
||||
"Clear events stream.",
|
||||
func(args []string) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue