aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-03-29 14:57:50 +0100
committerMatthew Wild <mwild1@gmail.com>2011-03-29 14:57:50 +0100
commit2fb6fd3f3878fa5ff18fe6acdd3ac0a9885ba27f (patch)
tree8c0b85cdcd6552ee6ea49056c563df777f71460a
parent4e83c7ddd66031d6a67d7c8cfda36f7b514ac1b6 (diff)
downloadprosody-2fb6fd3f3878fa5ff18fe6acdd3ac0a9885ba27f.tar.gz
prosody-2fb6fd3f3878fa5ff18fe6acdd3ac0a9885ba27f.zip
mod_privacy: Remove unused function, sendUnavailable
-rw-r--r--plugins/mod_privacy.lua22
1 files changed, 0 insertions, 22 deletions
diff --git a/plugins/mod_privacy.lua b/plugins/mod_privacy.lua
index d5842e26..18d7b703 100644
--- a/plugins/mod_privacy.lua
+++ b/plugins/mod_privacy.lua
@@ -45,28 +45,6 @@ function isAnotherSessionUsingDefaultList(origin)
end
end
-function sendUnavailable(origin, to, from)
---[[ example unavailable presence stanza
-<presence from="node@host/resource" type="unavailable" to="node@host" >
- <status>Logged out</status>
-</presence>
-]]--
- local presence = st.presence({from=from, type="unavailable"});
- presence:tag("status"):text("Logged out");
-
- local node, host = jid_bare(to);
- local bare = node .. "@" .. host;
-
- local user = bare_sessions[bare];
- if user then
- for resource, session in pairs(user.sessions) do
- presence.attr.to = session.full_jid;
- module:log("debug", "send unavailable to: %s; from: %s", tostring(presence.attr.to), tostring(presence.attr.from));
- origin.send(presence);
- end
- end
-end
-
function declineList(privacy_lists, origin, stanza, which)
if which == "default" then
if isAnotherSessionUsingDefaultList(origin) then