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

ulx luarun: Some things aren't being parsed properly, if at all. #227

Open
Reycko opened this issue Oct 23, 2024 · 0 comments
Open

ulx luarun: Some things aren't being parsed properly, if at all. #227

Reycko opened this issue Oct 23, 2024 · 0 comments

Comments

@Reycko
Copy link

Reycko commented Oct 23, 2024

Steps to reproduce

  1. Open console
  2. Type LUA containing double quotes or other things (e.g. ulx luarun print("hi"))

Expected behavior

Double quotes are properly parsed.

Actual behavior

The sent code, taking the example code from step 2 here, which was sent as print(hi), causing an error.
This could easily be solved by using ULib.explode(" ", argStr) or similar in the concommand instead of args, to override GMod's parsing, including double quotes, and other stuff like parenthesis, etc.

Error(s) in server console, if any

nil
ServerLog: [ULX] (SILENT) Player ran lua: print ( hi )

Error(s) in player's console, if any

None needed.

Version

ULib v2.71w
ULX v3.81w

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

1 participant