Skip to content

Conversation

@C0DELEVEL
Copy link

@C0DELEVEL C0DELEVEL commented Dec 3, 2025

This code fixes the unexpected behaviour of the previously introduced /login censor in chatbox history, as the /login command was appearing in chatbox history even if it wasn't used, one of examples was to write / in chat.

+ extend command censoring logic to also include the /register command, similar to /login.

Extend command censoring logic to include the `/register` command, similar to `/login`.
This prevents sensitive information, such as passwords, from being stored in
chat input history while still recording the command for history navigation.
@Dutchman101
Copy link
Member

Dutchman101 commented Dec 3, 2025

How about detecting common typo's as well?

For example:
-login (-register)
\login (\register)
.login (.register)

(These aren't valid commands)

And also, it's out of scope, but ideally we can avoid such typo's from being printed to chatbox as well. It's a very common way that players get their server accounts compromised.

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