aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-08-12 15:42:20 +0200
committerKim Alvefur <zash@zash.se>2014-08-12 15:42:20 +0200
commit7315c5156d8fada5ee2c504b72f94f1262ed74d1 (patch)
tree84e52dbea694ce4b71791d9c70fddaa6670a4236 /plugins
parent49c8878c9dfdea2269eb131cec83b06eb6c1dd32 (diff)
downloadprosody-7315c5156d8fada5ee2c504b72f94f1262ed74d1.tar.gz
prosody-7315c5156d8fada5ee2c504b72f94f1262ed74d1.zip
mod_blocklist: Use full word as variable name, we can afford that
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_blocklist.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua
index 3d528eb1..dca729f0 100644
--- a/plugins/mod_blocklist.lua
+++ b/plugins/mod_blocklist.lua
@@ -103,11 +103,11 @@ end);
local function edit_blocklist(event)
local origin, stanza = event.origin, event.stanza;
local username = origin.username;
- local act = stanza.tags[1];
+ local action = stanza.tags[1];
local new = {};
local jid;
- for item in act:childtags("item") do
+ for item in action:childtags("item") do
jid = jid_prep(item.attr.jid);
if not jid then
return origin.send(st_error_reply(stanza, "modify", "jid-malformed"));
@@ -116,7 +116,7 @@ local function edit_blocklist(event)
new[jid] = is_contact_subscribed(username, host, jid) or false;
end
- local mode = act.name == "block" or nil;
+ local mode = action.name == "block" or nil;
if mode and not next(new) then
-- <block/> element does not contain at least one <item/> child element
@@ -156,7 +156,7 @@ local function edit_blocklist(event)
end
if sessions[username] then
local blocklist_push = st.iq({ type = "set", id = "blocklist-push" })
- :add_child(act); -- I am lazy
+ :add_child(action); -- I am lazy
for _, session in pairs(sessions[username].sessions) do
if session.interested_blocklist then