mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_groups: Use module:get_option_path, look for file relative to config dir
This commit is contained in:
parent
2ab1810f7d
commit
bccfb4fd28
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ function remove_virtual_contacts(username, host, datastore, data)
|
|||
end
|
||||
|
||||
function module.load()
|
||||
groups_file = module:get_option_string("groups_file");
|
||||
groups_file = module:get_option_path("groups_file", nil, "config");
|
||||
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