projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e2fb5
)
mod_pep: Document data structures, so I don't have to spend time remembering every...
author
Matthew Wild
<mwild1@gmail.com>
Fri, 4 Sep 2015 10:26:51 +0000
(11:26 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 4 Sep 2015 10:26:51 +0000
(11:26 +0100)
plugins/mod_pep.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_pep.lua
b/plugins/mod_pep.lua
index bdb742e3a458f22f2b856616b406ea3e99e840af..7b4c5ddc185532902a31cc813cdedd3c3f1a2d5f 100644
(file)
--- 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()