Don't remove characters above 0x80.

This commit is contained in:
Diego Martínez 2017-01-11 22:37:54 -03:00
parent 4c334e9967
commit bb5f549193
1 changed files with 1 additions and 6 deletions

View File

@ -10,12 +10,7 @@ irc.hooks = {}
irc.registered_hooks = {}
-- TODO: Add proper conversion from CP1252 to UTF-8.
local stripped_chars = {"\2", "\31"}
for c = 127, 255 do
table.insert(stripped_chars, string.char(c))
end
stripped_chars = "["..table.concat(stripped_chars, "").."]"
local stripped_chars = "[\2\31]"
local function normalize(text)
-- Strip colors