diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-06-10 03:26:01 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-06-10 03:26:01 +0500 |
commit | 802beadb22d1a3f7fbee1f8d1a276c92dcfc09e9 (patch) | |
tree | fbced49e446eb464459b875d30159ba754271a2d /plugins/mod_privacy.lua | |
parent | caa8f63edae6a2a9a67dd93703ddb63bd324c802 (diff) | |
download | prosody-802beadb22d1a3f7fbee1f8d1a276c92dcfc09e9.tar.gz prosody-802beadb22d1a3f7fbee1f8d1a276c92dcfc09e9.zip |
mod_privacy: Workaround for a traceback.
Diffstat (limited to 'plugins/mod_privacy.lua')
-rw-r--r-- | plugins/mod_privacy.lua | 4 |
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); |