Changeset

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
parents 1651:6954d8f314a1
children 1653:02a55ad3dce1
files plugins/mod_tls.lua
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
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)