My badwords.txt(just beginning and end of file):
Quote
*xxx*,
xxx,
*xxx,
xxx*,
xxx
xxx,
*xxx,
xxx*,
xxx
My filter.lua (part where the error is):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function string.trimpun(t) 	local letters = t:letters() 	local first = letters[1] 	local last = letters[#letters] if not (type(first) == "string") then return t end if not (type(last) == "string") then return t end 	while (first:inside(puns)) do 		t = t:sub(2) 		first = t:sub(1, 1) 	end 	while (last:inside(puns)) do 		t = t:sub(1, #t-1) 		last = t:sub(#t, #t) 	end 	return t end
while (first:inside(puns)) do
error here.