fixed a bug with +

This commit is contained in:
Akamaru 2015-06-10 14:29:22 +02:00
parent bb3463de47
commit 6893208490

View File

@ -10,6 +10,7 @@ local function run(msg, matches)
end
local b = 1
local text = string.gsub(text, "%+", "plus")
while b ~= 0 do
text,b = text:gsub('^+','+')
text = text:trim()
@ -30,7 +31,7 @@ end
return {
description = "Text To Speech",
usage = "!tts [whatever]",
usage = "/tts [whatever]",
patterns = {
"^/tts (.+)$",
"^/tts(%w+) (.+)$"