mod_groups: Use module API for reading config

This commit is contained in:
Kim Alvefur 2013-03-23 01:39:56 +01:00
parent 1faf33dfd5
commit 9d07cc98e4

View file

@ -80,7 +80,7 @@ function remove_virtual_contacts(username, host, datastore, data)
end
function module.load()
groups_file = config.get(module:get_host(), "core", "groups_file");
groups_file = module:get_option_string("groups_file");
if not groups_file then return; end
module:hook("roster-load", inject_roster_contacts);