diff --git a/contrib/lua/memeposting.lua b/contrib/lua/memeposting.lua index 36813bd..a84ee99 100644 --- a/contrib/lua/memeposting.lua +++ b/contrib/lua/memeposting.lua @@ -11,6 +11,9 @@ end -- generate extra markup function memeposting(body, prefix) - body = string.gsub(body, "|(.*)|", wobble_text) + local nums = 1 + for nums > 0 do + body, nums = string.gsub(body, "|(.*)|", wobble_text, 1) + end return body end