share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Mon, 28 Dec 2015 23:37:44 +0300
changeset 11467 f2c36df8c7b1
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Allow server admins to join passworded/restricted rooms when it is really needed

-- Library for parameters handling

params = {}

function parseParams()
    if ScriptParam ~= nil then
        for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do
            params[k] = v
        end
    end
end