matrix-org / mjolnir

A moderation tool for Matrix
Apache License 2.0
310 stars 54 forks source link

Allow redacting a user at the same time they get banned #438

Open ghost opened 1 year ago

ghost commented 1 year ago

I propose changing the !mjolnir ban command syntax to something like this:

!mjolnir ban banlist @evilusertoredact:example.com redact banreason

if the redact word is not present in between the Matrix ID and the reason, mjolnir shouldn't redact the user, if it is present, it should redact every message sent by the user.

Our current syntax is

!mjolnir ban banlist @eviluser:example.com banreason

Should we allow specifying a redact reason too? like this:

!mjolnir ban banlist @evilusertoredact:example.com redact redactreason banreason

Or we could also use the same reason for banning and redacting.

Gnuxie commented 1 year ago

automaticallyRedactForReasons in the config exists for this purpose.

ghost commented 1 year ago

@Gnuxie yes, however, that config flag usually can't be changed by the moderators at the control room, it's usually the admin. That is why I think adding an additional argument to the ban command would be useful.

JokerGermany commented 1 year ago

Would like a command, too. When you use a different Reason for every ban, you can't use the config...