Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,564
edits
m (check if lore/name is nil before checking length) |
(attempt at replacement in arguments) |
||
Line 195: | Line 195: | ||
return spriteDiv | return spriteDiv | ||
end | end | ||
-- go through all args and replace all instances of "gm4:" with "gm4RP:" | |||
function p.replaceRP( f ) | |||
local args = f.args | |||
if #args == 0 then | |||
return f | |||
end | |||
for i = 1, #args do | |||
f.args[i] = string.gsub(args[i], "gm4:", "gm4RP:") | |||
end | |||
return f | |||
end | |||
return p | return p |
edits