charybdis-ircd / charybdis

Scalable IRCv3.2 server for large, community-oriented networks
GNU General Public License v2.0
231 stars 102 forks source link

Add config option to hide durations of temporary K/D-lines #299

Closed edk0 closed 4 years ago

edk0 commented 4 years ago

When, with the server configured to show K-line reasons, a user matches a temporary K-line, they get a message like:

:staberinde.local 465 a :You are banned from this server- Temporary K-line 4320 min. - abc123 (2019/12/31 01.45)

which might be helpful in some cases, but is not necessarily information operators would want to reveal. It might also be misleading in cases where the K-line is subject to change or likely to be renewed, as is the case for DNSBL bans, for example.

With this option enabled, the message becomes:

:staberinde.local 465 a :You are banned from this server- abc123 (2019/12/31 01.45)

just like a permanent K-line.

This change also affects D-lines for the same reasons.