From 99e7449395e61063af3ac5580c6cd3045177297c Mon Sep 17 00:00:00 2001 From: Tiago Danin Date: Thu, 25 Feb 2016 12:15:00 -0300 Subject: [PATCH] FIX shout --- plugins/shout.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/shout.lua b/plugins/shout.lua index 09d8dfb..24c2f3e 100644 --- a/plugins/shout.lua +++ b/plugins/shout.lua @@ -25,11 +25,11 @@ local action = function(msg) input = input:upper() local output = '' local inc = 0 - for match in input:gmatch('.') do + for match in input:gmatch('([%z\1-\127\194-\244][\128-\191]*)') do output = output .. match .. ' ' end output = output .. '\n' - for match in input:sub(2):gmatch('.') do + for match in input:sub(2):gmatch('([%z\1-\127\194-\244][\128-\191]*)') do local spacing = '' for i = 1, inc do spacing = spacing .. ' '