s2smanager, mod_compression, mod_tls: Changed event.session to event.origin for s2s...
[prosody.git] / plugins / mod_tls.lua
index dfc1e338c38269ec3f0ddb86850959e3b3302bb0..47b92d7377dab4a54e21a65d011402115c55465e 100644 (file)
@@ -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);