aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-12-06 02:12:28 +0100
committerKim Alvefur <zash@zash.se>2015-12-06 02:12:28 +0100
commit66b75a0f2ca9d9acbebe12486a50e3341a7c9512 (patch)
tree4b54c582962e41593f77eb92c4e8880c9eeea7a5 /plugins
parent8920afaf2fb1d0b724f9528d009c0bc226c3adbc (diff)
downloadprosody-66b75a0f2ca9d9acbebe12486a50e3341a7c9512.tar.gz
prosody-66b75a0f2ca9d9acbebe12486a50e3341a7c9512.zip
mod_blocklist: Add comments describing some variables
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_blocklist.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua
index a38d2a0f..a870d278 100644
--- a/plugins/mod_blocklist.lua
+++ b/plugins/mod_blocklist.lua
@@ -116,8 +116,8 @@ end);
local function edit_blocklist(event)
local origin, stanza = event.origin, event.stanza;
local username = origin.username;
- local action = stanza.tags[1];
- local new = {};
+ local action = stanza.tags[1]; -- "block" or "unblock"
+ local new = {}; -- JIDs to block depending or unblock on action
for item in action:childtags("item") do
local jid = jid_prep(item.attr.jid);