2015-05-31 11:48:19 +02:00
|
|
|
---
|
|
|
|
layout: post
|
|
|
|
comments: true
|
|
|
|
title: "WeeChat: ignoring with /filter"
|
|
|
|
category: [english]
|
|
|
|
tags: [english, IRC, WeeChat]
|
2015-12-20 10:53:23 +01:00
|
|
|
redirect_from:
|
|
|
|
- /filter.html
|
|
|
|
- /weechat-filter.html
|
2018-11-25 23:51:24 +01:00
|
|
|
- /english/2015/05/31/weechat-filter.html
|
2024-05-31 05:29:21 +02:00
|
|
|
robots: noai
|
2015-05-31 11:48:19 +02:00
|
|
|
---
|
|
|
|
|
2023-02-22 19:28:38 +01:00
|
|
|
_Everyone knows the `/ignore` command, but there is also `/filter` which
|
|
|
|
I feel is superiour._
|
2015-05-31 11:48:19 +02:00
|
|
|
|
|
|
|
First, how do they differ?
|
2023-02-22 19:28:38 +01:00
|
|
|
|
|
|
|
- Ignore removes all lines from the person you are ignoring permanently and
|
2015-05-31 11:48:19 +02:00
|
|
|
they aren't logged or anything.
|
2023-02-22 19:28:38 +01:00
|
|
|
- Filter only hides the messages from the person and is very customizable,
|
2015-05-31 11:48:19 +02:00
|
|
|
but I am only describing my ignoring here. They are still logged and
|
|
|
|
by toggling filters they become visible.
|
|
|
|
|
2023-02-22 19:28:38 +01:00
|
|
|
And how do you use it?
|
|
|
|
|
|
|
|
- `/filter add FILTERNAME * nick_*NICKHERE* *`
|
|
|
|
- FILTERNAME is the name how you recognize the filter, I usually put
|
|
|
|
the nick there.
|
|
|
|
- The first `*` is buffer where the filter is used in and means simply
|
|
|
|
"all buffers".
|
|
|
|
- `nick_*NICKHERE*` means that you want to filter lines from
|
|
|
|
`*NICKHERE*`, the asterisks are important as it makes sure that the
|
|
|
|
user doesn't change their nick to `NICKHERE_` who again wouldn't be
|
|
|
|
filtered.
|
|
|
|
- And the last `*`, what do you want to filter from that nick?
|
|
|
|
Everything.
|
2015-05-31 11:48:19 +02:00
|
|
|
|
|
|
|
But doesn't this defeat the whole point of ignoring? That depends on you
|
|
|
|
and do you think you will ever need the ignored content.
|
|
|
|
|
|
|
|
One good example where you might want to have the content is when you are
|
|
|
|
channel op and someone on your ignore list joins the channel and someone
|
|
|
|
else alerts ops.
|
|
|
|
|
|
|
|
With ignore you see nothing, with filter you just toggle your filters and
|
|
|
|
see that someone who you had filtered joined on the channel and did
|
|
|
|
something against the channel rules and you can easily take action.
|
2015-05-31 11:51:08 +02:00
|
|
|
|
|
|
|
Further reading, check `/help filter`, you will enjoy at least
|
|
|
|
the smart filter, `/filter add irc_smart * irc_smart_filter *` (hides
|
|
|
|
joins/quits/parts/etc. unless the person has talked in X minutes configured
|
|
|
|
in `/help irc.look.smart_filter_delay`).
|