Mercurial > prosody-modules
comparison mod_profile/mod_profile.lua @ 1420:808950ab007b
mod_profile: Integrate with mod_pep_plus by default
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 29 May 2014 00:58:33 +0200 |
parents | 877dc87539ff |
children | c3882787ae06 |
comparison
equal
deleted
inserted
replaced
1419:877dc87539ff | 1420:808950ab007b |
---|---|
6 local vcard = require"util.vcard"; | 6 local vcard = require"util.vcard"; |
7 local base64 = require"util.encodings".base64; | 7 local base64 = require"util.encodings".base64; |
8 local sha1 = require"util.hashes".sha1; | 8 local sha1 = require"util.hashes".sha1; |
9 | 9 |
10 local pep_plus; | 10 local pep_plus; |
11 if module:get_host_type() == "local" and module:get_option_boolean("vcard_to_pep") then | 11 if module:get_host_type() == "local" and module:get_option_boolean("vcard_to_pep", true) then |
12 pep_plus = module:depends"pep_plus"; | 12 pep_plus = module:depends"pep_plus"; |
13 end | 13 end |
14 | 14 |
15 local storage = module:open_store(); | 15 local storage = module:open_store(); |
16 local legacy_storage = module:open_store("vcard"); | 16 local legacy_storage = module:open_store("vcard"); |