Software /
code /
prosody
Changeset
4232:582fe508214f
mod_privacy: Remove several unused variable declarations
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 29 Mar 2011 15:07:14 +0100 |
parents | 4231:a99f82db692a |
children | 4233:3c644c3b10e2 |
files | plugins/mod_privacy.lua |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_privacy.lua Tue Mar 29 14:57:50 2011 +0100 +++ b/plugins/mod_privacy.lua Tue Mar 29 15:07:14 2011 +0100 @@ -101,7 +101,7 @@ 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 @@ 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 @@ 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