Module:User: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (Protected Module:User: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
(comment the validateArg function)
Line 15: Line 15:


local function validateArg(arg)
local function validateArg(arg)
-- Validates one argument. Whitespace is stripped, and blank arguments
-- are treated as nil.
if not arg then
if not arg then
return nil
return nil
Line 21: Line 23:
if arg ~= '' then
if arg ~= '' then
return arg
return arg
else
return nil
end
end
end
end