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

cannot write to players with ! in nick #63

Open
bretonium opened this issue Dec 26, 2021 · 2 comments
Open

cannot write to players with ! in nick #63

bretonium opened this issue Dec 26, 2021 · 2 comments
Labels
Question Further information is requested

Comments

@bretonium
Copy link
Contributor

bretonium commented Dec 26, 2021

a typical way to write something to somebody in a public chat is to prepend their name to the message. Teeworlds even adds a : when it is used like it with a Tab. In the chat it looks like that:
breton: anotherperson: hi

However, if another player's name starts with !, the message is not being displayed to anybody, even to that player, although it should be.

@Kaffeine Kaffeine added the Question Further information is requested label Dec 26, 2021
@Kaffeine
Copy link
Contributor

Kaffeine commented Dec 26, 2021

The filter can be toggled via sv_filter_chat_commands 0/1. There is no list of the commands and even if there 'll be the list, it is still possible to have a player with name !me or !top5.

I don't see a good solution for this issue.

@bretonium
Copy link
Contributor Author

Maybe we could filter just the commands? The list is pretty limited actually: https://github.com/ResamVi/infclass-stats/blob/master/operations/commands.go#L26-L31

{
"me", "kills", "active", "survivors", "best", "wins", "player", "picks", "record", "today", "you",
"mercenary", "medic", "hero", "engineer", "soldier", "ninja", "sniper", "scientist", "biologist", "looper"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants