Software / code / prosody
Changeset
7128:fccf340f4e1e
mod_groups: Use module:get_option_path, look for file relative to config dir
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 04 Feb 2016 10:06:09 +0100 |
| parents | 7127:27557dd7b460 |
| children | 7129:e4c886946ecb |
| files | plugins/mod_groups.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_groups.lua Thu Feb 04 10:05:35 2016 +0100 +++ b/plugins/mod_groups.lua Thu Feb 04 10:06:09 2016 +0100 @@ -82,7 +82,7 @@ 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);