aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_blocklist.lua
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
commit7b4dd5567550ad86da1713e122aba7f3733dbb99 (patch)
tree4b54c582962e41593f77eb92c4e8880c9eeea7a5 /plugins/mod_blocklist.lua
parent6c08f31979e9de47e13790b102c9743cb4378e22 (diff)
downloadprosody-7b4dd5567550ad86da1713e122aba7f3733dbb99.tar.gz
prosody-7b4dd5567550ad86da1713e122aba7f3733dbb99.zip
mod_blocklist: Add comments describing some variables
Diffstat (limited to 'plugins/mod_blocklist.lua')
-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);