aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-10 03:26:01 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-10 03:26:01 +0500
commit802beadb22d1a3f7fbee1f8d1a276c92dcfc09e9 (patch)
treefbced49e446eb464459b875d30159ba754271a2d /plugins
parentcaa8f63edae6a2a9a67dd93703ddb63bd324c802 (diff)
downloadprosody-802beadb22d1a3f7fbee1f8d1a276c92dcfc09e9.tar.gz
prosody-802beadb22d1a3f7fbee1f8d1a276c92dcfc09e9.zip
mod_privacy: Workaround for a traceback.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_privacy.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_privacy.lua b/plugins/mod_privacy.lua
index ca5d51fa..8dbc2bc4 100644
--- a/plugins/mod_privacy.lua
+++ b/plugins/mod_privacy.lua
@@ -438,7 +438,9 @@ function preCheckOutgoing(e)
e.stanza.attr.from = e.stanza.attr.from .. "/" .. session.resource;
end
end
- return checkIfNeedToBeBlocked(e, session);
+ if session.username then -- FIXME do properly
+ return checkIfNeedToBeBlocked(e, session);
+ end
end
module:hook("pre-message/full", preCheckOutgoing, 500);