diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-01-13 19:37:12 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-01-13 19:37:12 +0500 |
commit | 5e4187070024292ed2bc3bdcb1f0191d30f451a5 (patch) | |
tree | 190fb7473a5d91f59882d1341c8aedd1ebf1b269 /plugins/mod_tls.lua | |
parent | c157d04ba36de495ca949fb72bcae323f0201bc7 (diff) | |
download | prosody-5e4187070024292ed2bc3bdcb1f0191d30f451a5.tar.gz prosody-5e4187070024292ed2bc3bdcb1f0191d30f451a5.zip |
mod_saslauth, mod_tls: minor code cleanup
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r-- | plugins/mod_tls.lua | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index fc816ad1..af403dc9 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -21,12 +21,6 @@ local st = require "util.stanza"; ---local sessions = sessions; - -local t_insert = table.insert; - -local log = require "util.logger".init("mod_starttls"); - local xmlns_starttls ='urn:ietf:params:xml:ns:xmpp-tls'; module:add_handler("c2s_unauthed", "starttls", xmlns_starttls, @@ -44,8 +38,8 @@ module:add_handler("c2s_unauthed", "starttls", xmlns_starttls, local starttls_attr = { xmlns = xmlns_starttls }; module:add_event_hook("stream-features", - function (session, features) - if session.conn.starttls then - features:tag("starttls", starttls_attr):up(); - end - end); + function (session, features) + if session.conn.starttls then + features:tag("starttls", starttls_attr):up(); + end + end); |