mod_groups: Use module:get_option_path, look for file relative to config dir
authorKim Alvefur <zash@zash.se>
Thu, 4 Feb 2016 09:06:09 +0000 (10:06 +0100)
committerKim Alvefur <zash@zash.se>
Thu, 4 Feb 2016 09:06:09 +0000 (10:06 +0100)
plugins/mod_groups.lua

index be1a5508f87021d24a1c8d064060ba667f711f38..62a382469d712063b310f337dd5ebb2bbe6fcaf4 100644 (file)
@@ -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);