# HG changeset patch # User Kim Alvefur # Date 1364169329 -3600 # Node ID 5276e1fc26b66555836b130631f4c0be71f117b0 # Parent 7236cdec3ea13fd3560392e990d32f25413981a6 mod_seclabels: Remove config-reloaded hook. Just reload the module to update diff -r 7236cdec3ea1 -r 5276e1fc26b6 mod_seclabels/mod_seclabels.lua --- a/mod_seclabels/mod_seclabels.lua Mon Mar 25 00:44:54 2013 +0100 +++ b/mod_seclabels/mod_seclabels.lua Mon Mar 25 00:55:29 2013 +0100 @@ -25,14 +25,9 @@ PUBLIC = { label = "THISISPUBLIC" }; }; }; -local catalog_name, catalog_desc, labels; -local function get_conf() - catalog_name = module:get_option_string("security_catalog_name", "Default"); - catalog_desc = module:get_option_string("security_catalog_desc", "My labels"); - labels = module:get_option("security_labels", default_labels); -end -module:hook_global("config-reloaded",get_conf); -get_conf(); +local catalog_name = module:get_option_string("security_catalog_name", "Default"); +local catalog_desc = module:get_option_string("security_catalog_desc", "My labels"); +local labels = module:get_option("security_labels", default_labels); function handle_catalog_request(request) local catalog_request = request.stanza.tags[1];