Software /
code /
prosody
Diff
plugins/mod_blocklist.lua @ 6971:96080d86bab8
mod_blocklist: Add comments describing some variables
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 06 Dec 2015 02:12:28 +0100 |
parent | 6970:cde7d14052f9 |
child | 6972:9e926e48cbf9 |
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);