Software /
code /
prosody
Diff
plugins/mod_tls.lua @ 1652:ce6b91c78b9f
mod_tls: Updated to use module:get_option instead of configmanager
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 08 Aug 2009 23:41:45 +0500 |
parent | 1523:841d61be198f |
child | 1675:bddd5ef9565e |
line wrap: on
line diff
--- a/plugins/mod_tls.lua Sat Aug 08 23:41:16 2009 +0500 +++ b/plugins/mod_tls.lua Sat Aug 08 23:41:45 2009 +0500 @@ -6,14 +6,11 @@ -- COPYING file in the source package for more information. -- - - local st = require "util.stanza"; local xmlns_starttls ='urn:ietf:params:xml:ns:xmpp-tls'; -local config = require "core.configmanager"; -local secure_auth_only = config.get("*", "core", "require_encryption"); +local secure_auth_only = module:get_option("require_encryption"); module:add_handler("c2s_unauthed", "starttls", xmlns_starttls, function (session, stanza)