diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-09-04 11:26:51 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-09-04 11:26:51 +0100 |
commit | f2f24a13e074898e269169cbeb599cf3cb598dcc (patch) | |
tree | 514944cb70ada887c7f5eeb66cec658e71e52ceb /plugins/mod_pep.lua | |
parent | 3d5ee7cea93b3eb651a2bf52b0c0de8e2ed6ad37 (diff) | |
download | prosody-f2f24a13e074898e269169cbeb599cf3cb598dcc.tar.gz prosody-f2f24a13e074898e269169cbeb599cf3cb598dcc.zip |
mod_pep: Document data structures, so I don't have to spend time remembering every time I work on this module
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r-- | plugins/mod_pep.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index bdb742e3..7b4c5ddc 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -17,9 +17,13 @@ local type = type; local calculate_hash = require "util.caps".calculate_hash; local core_post_stanza = prosody.core_post_stanza; +-- Used as canonical 'empty table' local NULL = {}; +-- data[user_bare_jid][node] = item_stanza local data = {}; +--- recipients[user_bare_jid][contact_full_jid][subscribed_node] = true local recipients = {}; +-- hash_map[hash][subscribed_nodes] = true local hash_map = {}; module.save = function() |