Skip to main content

Name

msys.config — Set or get configuration values

Synopsis

msys.config(action, parameters);

action: string
parameters: string

Description

Corresponds to the config system console command, and can be used to get or set configuration values. For example:

local mob, tmob = msys.config("get", "max_outbound_connections");
local ymob, tymob = msys.config("get", "domain", "yahoo.com", "max_outbound_connections");

This function returns two values:

  • The value of the configuration option

  • The textual output from the command (what you would have seen had you typed it via ec_console)

Because this function is in the msys namespace, an explicit require is not necessary.

Was this page helpful?