mod_groups: Use module:get_option_path, look for file relative to config dir
authorKim Alvefur <zash@zash.se>
Thu, 04 Feb 2016 10:06:09 +0100
changeset 7131 fccf340f4e1e
parent 7130 27557dd7b460
child 7132 e4c886946ecb
mod_groups: Use module:get_option_path, look for file relative to config dir
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);