comparison mod_compression_unsafe/mod_compression_unsafe.lua @ 2795:226693a22fc9

mod_compression_unsafe: Fix logic bug in previous commit
author Matthew Wild <mwild1@gmail.com>
date Wed, 11 Oct 2017 13:56:03 +0100
parents d42e9da671fd
children
comparison
equal deleted inserted replaced
2794:d42e9da671fd 2795:226693a22fc9
24 return; 24 return;
25 end 25 end
26 26
27 module:hook("stream-features", function(event) 27 module:hook("stream-features", function(event)
28 local origin, features = event.origin, event.features; 28 local origin, features = event.origin, event.features;
29 if not origin.compressed and origin.type == "c2s" or origin.type == "c2s_unbound" then 29 if not origin.compressed and (origin.type == "c2s" or origin.type == "c2s_unbound") then
30 features:add_child(compression_stream_feature); 30 features:add_child(compression_stream_feature);
31 end 31 end
32 end); 32 end);
33 33
34 module:hook("s2s-stream-features", function(event) 34 module:hook("s2s-stream-features", function(event)