Merge 0.10->trunk
[prosody.git] / plugins / mod_groups.lua
index be1a5508f87021d24a1c8d064060ba667f711f38..d696d45388df400f49caa168de6423ae314589d7 100644 (file)
@@ -10,8 +10,6 @@
 local groups;
 local members;
 
-local groups_file;
-
 local jid, datamanager = require "util.jid", require "util.datamanager";
 local jid_prep = jid.prep;
 
@@ -82,7 +80,7 @@ function remove_virtual_contacts(username, host, datastore, data)
 end
 
 function module.load()
-       groups_file = module:get_option_string("groups_file");
+       local groups_file = module:get_option_path("groups_file", nil, "config");
        if not groups_file then return; end
 
        module:hook("roster-load", inject_roster_contacts);