about summary refs log tree commit diff
path: root/bot.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bot.lua')
-rw-r--r--bot.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot.lua b/bot.lua
index 66e3d12..55ce64f 100644
--- a/bot.lua
+++ b/bot.lua
@@ -48,7 +48,7 @@ local function emit_message(message)
 	table.insert(out, message.command)
 
 	for i, v in ipairs(message.params or {}) do
-		assert(not string.match(i, "[\0\r\n]"))
+		v = string.gsub(v, "[\0\r\n]", "")
 
 		if i == #(message.params or {}) then
 			table.insert(out, " :")