Comparison

plugins/mod_groups.lua @ 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
parent 5776:bd0ff8ae98a8
child 7129:e4c886946ecb
comparison
equal deleted inserted replaced
7127:27557dd7b460 7128:fccf340f4e1e
80 80
81 return username, host, datastore, data; 81 return username, host, datastore, data;
82 end 82 end
83 83
84 function module.load() 84 function module.load()
85 groups_file = module:get_option_string("groups_file"); 85 groups_file = module:get_option_path("groups_file", nil, "config");
86 if not groups_file then return; end 86 if not groups_file then return; end
87 87
88 module:hook("roster-load", inject_roster_contacts); 88 module:hook("roster-load", inject_roster_contacts);
89 datamanager.add_callback(remove_virtual_contacts); 89 datamanager.add_callback(remove_virtual_contacts);
90 90