Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude and include channels on Server Messages #542

Merged
merged 5 commits into from
Sep 10, 2024
Merged

Conversation

casperstorm
Copy link
Member

@casperstorm casperstorm commented Sep 6, 2024

This PR solves the following problems:

  1. You want to see join in all channels except #linux and #halloy.
  2. You dont want to see part in any channels except #linux and #halloy.

This is now solved by exclude and include

# 1. see join messages in all channels except #linux and #halloy.
[buffer.server_messages.join]
exclude = ["#linux", "#halloy"]
# 2. don't see part messages in any channels except #linux and #halloy.
# The "*" (or "all") is a wildcard which means all channels.
[buffer.server_messages.join]
exclude = ["*"]
include = ["#linux", "#halloy"]

If the channel is included, it has precedence over excluded and enabled is above both so the following wont show any message at all:

# dont see any quit messages in any channel
[buffer.server_messages.quit]
enabled = false
include = ["*"]
  • Update CHANGELOG
  • Update book

data/src/config/buffer.rs Outdated Show resolved Hide resolved
data/src/config/buffer.rs Outdated Show resolved Hide resolved
@casperstorm casperstorm merged commit 22d56c5 into main Sep 10, 2024
1 check passed
@casperstorm casperstorm deleted the exclude-channels branch September 10, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants