mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_groups: Use module API for reading config
This commit is contained in:
parent
1faf33dfd5
commit
9d07cc98e4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue