Software /
code /
prosody
Diff
plugins/mod_tls.lua @ 357:17bcecb06420
Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 20 Nov 2008 01:33:25 +0000 |
parent | 316:13e2bd256a20 |
child | 438:193f9dd64f17 |
line wrap: on
line diff
--- a/plugins/mod_tls.lua Thu Nov 20 01:32:24 2008 +0000 +++ b/plugins/mod_tls.lua Thu Nov 20 01:33:25 2008 +0000 @@ -24,9 +24,10 @@ end end); +local starttls_attr = { xmlns = xmlns_starttls }; add_event_hook("stream-features", function (session, features) if session.conn.starttls then - t_insert(features, "<starttls xmlns='"..xmlns_starttls.."'/>"); + features:tag("starttls", starttls_attr):up(); end end);