Skip to content

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

@Reycko

Description

@Reycko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions