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

Bug: Double Slash or More Commands Not Being Parsed Properly #414

Closed
dilllxd opened this issue Nov 5, 2024 · 1 comment
Closed

Bug: Double Slash or More Commands Not Being Parsed Properly #414

dilllxd opened this issue Nov 5, 2024 · 1 comment

Comments

@dilllxd
Copy link
Contributor

dilllxd commented Nov 5, 2024

Thanks to some people over on Discord it was noticed that Gate is not properly handling commands that have more than one slash. This is seemingly related to

cmd := strings.TrimPrefix(message, "/")
I'm new to Go and Gate overall still so I'm not sure how changing this affects anything else however changing this line to
cmd := message solves the problem from what I can tell. Gate commands like /send still work as well as //wand or /help. Please feel free to test more though before just pushing this change as I know really nothing about how Gate's command handling works and I haven't really tested this thoroughly enough imo.

8z9hpq7g

@robinbraemer
Copy link
Member

Thanks, that has fixed it in my testing as well.

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

No branches or pull requests

2 participants