# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1454576769 -3600
# Node ID fccf340f4e1ea3f8f43d659ff8a8df7112b10d4f
# Parent  27557dd7b460ccd82784bb3e76d482c568e3f36a
mod_groups: Use module:get_option_path, look for file relative to config dir

diff -r 27557dd7b460 -r fccf340f4e1e plugins/mod_groups.lua
--- 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);