aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-03-29 15:07:14 +0100
committerMatthew Wild <mwild1@gmail.com>2011-03-29 15:07:14 +0100
commit662e978e43b939dd737adff80121c1f482d9eef0 (patch)
tree00596604832a7add57f599f6cec407eb5d00c31f
parent2fb6fd3f3878fa5ff18fe6acdd3ac0a9885ba27f (diff)
downloadprosody-662e978e43b939dd737adff80121c1f482d9eef0.tar.gz
prosody-662e978e43b939dd737adff80121c1f482d9eef0.zip
mod_privacy: Remove several unused variable declarations
-rw-r--r--plugins/mod_privacy.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_privacy.lua b/plugins/mod_privacy.lua
index 18d7b703..2d696154 100644
--- a/plugins/mod_privacy.lua
+++ b/plugins/mod_privacy.lua
@@ -101,7 +101,7 @@ function deleteList(privacy_lists, origin, stanza, name)
return {"modify", "bad-request", "Not existing list specifed to be deleted."};
end
-function createOrReplaceList (privacy_lists, origin, stanza, name, entries, roster)
+function createOrReplaceList (privacy_lists, origin, stanza, name, entries)
local bare_jid = origin.username.."@"..origin.host;
if privacy_lists.lists == nil then
@@ -301,7 +301,6 @@ function checkIfNeedToBeBlocked(e, session)
return; -- from one of a user's resource to another => HANDS OFF!
end
- local item;
local listname = session.activePrivacyList;
if listname == nil then
listname = privacy_lists.default; -- no active list selected, use default list
@@ -392,7 +391,6 @@ function preCheckIncoming(e)
end
if resource == nil then
local prio = 0;
- local session_;
if bare_sessions[node.."@"..host] ~= nil then
for resource, session_ in pairs(bare_sessions[node.."@"..host].sessions) do
if session_.priority ~= nil and session_.priority > prio then