Even more trimming of control characters. If this fails, I'll have to rethink the storage format.

Wobin [04-23-14 - 15:02]
Even more trimming of control characters. If this fails, I'll have to rethink the storage format.
Filename
BorrowerAndLender.lua
diff --git a/BorrowerAndLender.lua b/BorrowerAndLender.lua
index 0ed3287..334bedf 100644
--- a/BorrowerAndLender.lua
+++ b/BorrowerAndLender.lua
@@ -40,7 +40,7 @@ local function FilterNPC(eventCode, channel, npc, chat)
 	if blacklist[npc] then return end
 	if not settings.chats[npc] then settings.chats[npc] = {} end

-	chat = chat:gsub("\n","")
+	chat = chat:gsub("\n",""):gsub("\r","")

 	if not settings.chats[npc][chat] then settings.chats[npc][chat] = 0 return end