Ability to prevent writing of/rewrite rules by pattern
Story: I want to avoid writing rules to banlists that match a given pattern. It happens from time to time that a moderator writes a rule for a bridged user without wildcarding the domain, so i'd like to prevent or rewrite rules matching .eg @telegram_12345:myserver.xyz to @telegram_12345:*
Maybe it would make more sense to have an issue for banning bridged users?
I'm not sure how you'd reliably detect those?
The same way that you're doing here?
I had a basic configurable glob/regex thing in mind
The point is that the glob/regex is the way to ban them, it's not the ban of a bridged user itself. If you want to record that then we need something else.
So like idk how telegram works but we could have something like this:
me.marewolf.draupnir.rule.telegram_user { "entity": "<their-telegram-id>" }
Then the glob rule can be derived from that