Mercurial > prosody-hg
comparison plugins/mod_groups.lua @ 5373:9e6d6cdf0449
mod_groups: Use module API for reading config
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 23 Mar 2013 01:39:56 +0100 |
| parents | 51706d2b9f77 |
| children | d13ec6622752 |
comparison
equal
deleted
inserted
replaced
| 5372:676e3cf0e565 | 5373:9e6d6cdf0449 |
|---|---|
| 78 | 78 |
| 79 return username, host, datastore, data; | 79 return username, host, datastore, data; |
| 80 end | 80 end |
| 81 | 81 |
| 82 function module.load() | 82 function module.load() |
| 83 groups_file = config.get(module:get_host(), "core", "groups_file"); | 83 groups_file = module:get_option_string("groups_file"); |
| 84 if not groups_file then return; end | 84 if not groups_file then return; end |
| 85 | 85 |
| 86 module:hook("roster-load", inject_roster_contacts); | 86 module:hook("roster-load", inject_roster_contacts); |
| 87 datamanager.add_callback(remove_virtual_contacts); | 87 datamanager.add_callback(remove_virtual_contacts); |
| 88 | 88 |
