Mercurial > prosody-hg
diff plugins/mod_tls.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 |
| parents | 35a5d1c5ea28 |
| children | 1d34b45dec15 |
line wrap: on
line diff
--- a/plugins/mod_tls.lua Fri Feb 12 04:25:37 2010 +0500 +++ b/plugins/mod_tls.lua Fri Feb 12 04:30:17 2010 +0500 @@ -49,8 +49,8 @@ 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);
