Module:Chat: Difference between revisions

From Growtopia
Jump to navigationJump to search
>NekoPillow
mNo edit summary
>NekoPillow
mNo edit summary
Line 3: Line 3:
function chat.parse(frame)
function chat.parse(frame)
     local str = frame.args[1]
     local str = frame.args[1]
     str:gsub("`[0-9wobpqertas!@#$^&`]",function(c)
      
    return str:gsub("`[0-9wobpqertas!@#$^&`]",function(c)
          
          
         return c:sub(2,2)
         return c:sub(2,2)
     end)
     end)
   
    return str
end
end


return chat
return chat

Revision as of 05:04, 24 January 2019

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)
        
        return c:sub(2,2)
    end)
end

return chat