TeamUlysses / ulx

ULX: A powerful administration addon for Garry's Mod
https://ulyssesmod.net
Other
163 stars 72 forks source link

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

Open Reycko opened 6 days ago

Reycko commented 6 days ago

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