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

More fixes, add sanity checks to user input, prevent mismatched targets. #8

Closed
wants to merge 8 commits into from

Conversation

KyleSanderson
Copy link
Contributor

There may be some definite fallout from commit ab1e030 . The rest however is fairly straight forward. Again, totally welcome to cherry pick whatever you wish, hopefully it's all for the better 🎱

Utilize StripQuotes native instead of relying on handrolled strlen hackery.
Skip first character to avoid trigger dependency.
Avoid processing anything if no args are passed.
There were a few bugs that were fixed with this refactoring as well, mainly IsClientInGame erroring out when the index is 0.
The main bug that was fixed is a client makes a query against a target, the target disconnects, and you're getting messages back from a potentially different target. This along with the client themselves disconnecting, someone else joins, and then they get the output of the command.

There may be some definite fallout from this, it was mostly manual labour.
This should fix a few native errors, and ultimately act as a more stable method of protecting client data/sanity. Targets (issuers) can change during the query delay, along with many other things. It's definitely not something that's good, which is what this commit is attempting to change.
ErikMinekus pushed a commit that referenced this pull request Aug 2, 2013
@ErikMinekus
Copy link
Member

Merged manually and changed some things, but overall great fixes. Next time I'll merge first and change it afterwards, since that's probably less error-prone, but it looks like it went fine. Thanks again!

@ErikMinekus ErikMinekus closed this Aug 2, 2013
@ghost ghost mentioned this pull request Mar 30, 2014
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.

None yet

2 participants