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 end
local b = 1 local b = 1
local text = string.gsub(text, "%+", "plus")
while b ~= 0 do while b ~= 0 do
text,b = text:gsub('^+','+') text,b = text:gsub('^+','+')
text = text:trim() text = text:trim()
@ -30,7 +31,7 @@ end
return { return {
description = "Text To Speech", description = "Text To Speech",
usage = "!tts [whatever]", usage = "/tts [whatever]",
patterns = { patterns = {
"^/tts (.+)$", "^/tts (.+)$",
"^/tts(%w+) (.+)$" "^/tts(%w+) (.+)$"