aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-08-08 23:41:45 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-08-08 23:41:45 +0500
commitb3d4c0ec73e240b17ce33b453934c5488e7e4471 (patch)
treee32d190a0fb42293d3bb94c29ee2fd8a54b0e5d0 /plugins
parentac0b566ab429e47490e3d4372e662be4dfee2fe4 (diff)
downloadprosody-b3d4c0ec73e240b17ce33b453934c5488e7e4471.tar.gz
prosody-b3d4c0ec73e240b17ce33b453934c5488e7e4471.zip
mod_tls: Updated to use module:get_option instead of configmanager
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_tls.lua5
1 files changed, 1 insertions, 4 deletions
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)