aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-02-12 04:30:17 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-02-12 04:30:17 +0500
commit1445574fd32de84b735e4d324ad9a6864b26ba57 (patch)
tree3b5e3d9ad75f9fd14a2efdaf9c52db4ee6ea288a /plugins
parent98da04140180b77125ad1fdecb0d47f30c9d30fb (diff)
downloadprosody-1445574fd32de84b735e4d324ad9a6864b26ba57.tar.gz
prosody-1445574fd32de84b735e4d324ad9a6864b26ba57.zip
s2smanager, mod_compression, mod_tls: Changed event.session to event.origin for s2s-stream-features event for consistency.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_compression.lua4
-rw-r--r--plugins/mod_tls.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua
index 725c0b63..4b1fa79f 100644
--- a/plugins/mod_compression.lua
+++ b/plugins/mod_compression.lua
@@ -34,9 +34,9 @@ module:hook("stream-features", function(event)
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);
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index dfc1e338..47b92d73 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -49,8 +49,8 @@ module:hook("stream-features", function(event)
end
end);
module:hook("s2s-stream-features", function(event)
- local session, features = event.session, event.features;
- if session.to_host and session.type ~= "s2sin" and session.conn.starttls then
+ local origin, features = event.origin, event.features;
+ if origin.to_host and origin.type ~= "s2sin" and origin.conn.starttls then
features:add_child(s2s_feature);
end
end);