Changeset

6971:96080d86bab8

mod_blocklist: Add comments describing some variables
author Kim Alvefur <zash@zash.se>
date Sun, 06 Dec 2015 02:12:28 +0100
parents 6970:cde7d14052f9
children 6972:9e926e48cbf9
files plugins/mod_blocklist.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_blocklist.lua	Sun Dec 06 02:09:52 2015 +0100
+++ b/plugins/mod_blocklist.lua	Sun Dec 06 02:12:28 2015 +0100
@@ -116,8 +116,8 @@
 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);