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

filter module: ability to configure variables in the X-line reason, like $nick #1846

Open
Robby- opened this issue Feb 2, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Robby-
Copy link
Contributor

Robby- commented Feb 2, 2021

Description
The ability to configure variables in X-line reasons, like $nick (which at the moment is the only one I'd really like and that we could use). $nick would be replaced by the nickname of the user that triggered the filter.

Why this would be useful
It would make administration a bit simpler when we need to look up a specific X-line set by a filter. Often we get requests (by email, etc) about bans set by a filter by users who do not always directly provide all relevant info, e.g. the exact reason they see when trying to reconnect or their IP at the time, etc, but they may provide their nickname still, and we can use that to look up the X-line (by using the xlinetools module) without necessarily having to ask follow-up questions first.

An example filter tag using $nick in the reason could look like this:

<keyword pattern="*bannedpattern*"
         reason="Unwanted spam ($nick)"
         action="gline"
         flags="*"
         duration="3d"
>

For this example we assume the user's nick is BadUser, this would result in an X-line reason like Unwanted spam (BadUser) shown to the user when they get banned and when they attempt to reconnect.

@SadieCat SadieCat added the enhancement New feature or request label Feb 22, 2021
@SadieCat SadieCat added this to the v4.0 milestone Nov 23, 2022
@SadieCat SadieCat removed this from the v4.0 milestone Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants