From 6893208490f7b428363e8c836470767f0a30ba21 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Wed, 10 Jun 2015 14:29:22 +0200 Subject: [PATCH] fixed a bug with + --- plugins/tts.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/tts.lua b/plugins/tts.lua index 038d2e8..6b159ac 100644 --- a/plugins/tts.lua +++ b/plugins/tts.lua @@ -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+) (.+)$"