1
0
mirror of https://github.com/XeonSquared/OC-Copper.git synced 2024-11-23 09:58:06 +11:00

Those changes lost in the midst of testing.

This commit is contained in:
20kdc 2017-03-21 12:50:23 +00:00
parent eeb01821c3
commit bf3ec0ec26

View File

@ -57,10 +57,10 @@ if outbound then
return "<" .. from
end
processTo = function (nto)
if from:sub(1, netname:len()) ~= netname then
if nto:sub(1, netname:len()) ~= netname then
return
end
return from:sub(netname:len() + 1)
return nto:sub(netname:len() + 1)
end
else
processFrom = function (from)
@ -70,14 +70,15 @@ else
return netname .. from
end
processTo = function (nto)
if from:sub(1, 1) ~= "<" then
if nto:sub(1, 1) ~= "<" then
return
end
return from:sub(2)
return nto:sub(2)
end
end
local function checkLen(s)
if not s then return end
if s:len() == 0 then return end
if s:len() > 256 then return end
return s
@ -108,4 +109,5 @@ while true do
end
end
end
end
end