From f94ecbdaa990ac80cea6d85e6b34cfb7b0319f9c Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 28 Jan 2017 15:12:00 -0500 Subject: [PATCH] add psytext alias in lua --- contrib/lua/memeposting.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/lua/memeposting.lua b/contrib/lua/memeposting.lua index 330ef41..899ef3b 100644 --- a/contrib/lua/memeposting.lua +++ b/contrib/lua/memeposting.lua @@ -13,9 +13,14 @@ function explode_text(str) return span_text("explode", str) end +function psy_text(str) + return span_text("psy", str) +end + -- generate extra markup function memeposting(body, prefix) body = string.gsub(body, "|(.-)|", wobble_text) body = string.gsub(body, "//(.-)\\\\", explode_text) + body = string.gsub(body, "/@(.-)@\\", psy_text) return body end