Software /
code /
prosody
Diff
plugins/mod_compression.lua @ 2613:afa20941e098
s2smanager, mod_compression, mod_tls: Changed event.session to event.origin for s2s-stream-features event for consistency.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 12 Feb 2010 04:30:17 +0500 |
parent | 2609:2ee28cae530a |
child | 2887:765e7070d0a8 |
line wrap: on
line diff
--- a/plugins/mod_compression.lua Fri Feb 12 04:25:37 2010 +0500 +++ b/plugins/mod_compression.lua Fri Feb 12 04:30:17 2010 +0500 @@ -34,9 +34,9 @@ end); module:hook("s2s-stream-features", function(event) - local session, features = event.session, event.features; + local origin, features = event.origin, event.features; -- FIXME only advertise compression support when TLS layer has no compression enabled - if not session.compressed then + if not origin.compressed then features:add_child(compression_stream_feature); end end);