made the copper packet IDs only use printable characters

This commit is contained in:
Izaya 2017-09-12 17:50:32 +10:00
parent 10615bfecb
commit c3acea92d0
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ spawn("copperd",function() print(xpcall(function ()
end
elseif ev[1] == "sendmsg" then
local p = {}
p.pid = string.char(math.random(255),math.random(255),math.random(255))
p.pid = string.char(math.random(32,126),math.random(32,126),math.random(32,126))
p.nid = ev[2]
p.port = ev[3]
p.msg = ev[4]