Module:Chat

From Growtopia
Revision as of 05:09, 24 January 2019 by >NekoPillow
Jump to navigationJump to search

Documentation for this module may be created at Module:Chat/doc

local chat = {}

function chat.parse(frame)
    local str = frame.args[1]
    
    return (str:gsub("`[0-9wobpqertas!@#$^&`]",function(c)
        local code = c:sub(2,2)
        
        if(code == "`") then return "</span>" end
        return "<span style='"..code.."'>"
    end))
end

return chat