Software /
code /
prosody
Diff
plugins/mod_tls.lua @ 705:11afa1d88c55
mod_saslauth, mod_tls: minor code cleanup
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 13 Jan 2009 19:37:12 +0500 |
parent | 622:96848cf7f28c |
child | 758:b1885732e979 |
line wrap: on
line diff
--- a/plugins/mod_tls.lua Tue Jan 13 19:18:37 2009 +0500 +++ b/plugins/mod_tls.lua Tue Jan 13 19:37:12 2009 +0500 @@ -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 @@ 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);