equal
deleted
inserted
replaced
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) |