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:
parent
52ae542344
commit
970926efb6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user