From: Waqas Hussain Date: Sat, 8 Aug 2009 18:41:45 +0000 (+0500) Subject: mod_tls: Updated to use module:get_option instead of configmanager X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;ds=sidebyside;h=1c9c0e018961aeca8a565f377e02f9955f72f0ba;p=prosody.git mod_tls: Updated to use module:get_option instead of configmanager --- diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index 8926edfc..158285f6 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -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)