1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-23 10:38:05 +11:00

made the vtunnel bridge not repeat packets to the connection that sent them

This commit is contained in:
Izaya 2019-12-19 17:20:04 +11:00
parent 52ae542344
commit 970926efb6

View File

@ -96,8 +96,10 @@ function pushLoop()
for id,msg in pairs(messages) do
if msg[1]:len() > 3 then
for k,client in pairs(clients) do
client.conn:send(msg[1])
reprint("Message #"..tostring(id).." (Client #"..tostring(msg[2]).." -> Client #"..tostring(k).." - "..msg[1])
if k ~= msg[2] then
client.conn:send(msg[1])
reprint("Message #"..tostring(id).." (Client #"..tostring(msg[2]).." -> Client #"..tostring(k)..") - "..msg[1])
end
end
end
messages[id] = nil