prosody: Enable storage manager.
[prosody.git] / plugins / mod_privacy.lua
index aa953310777fefb63252e636f3d69bbce152a72c..5355e527654f2a7aa1e8b9a04e3700ab21d8708d 100644 (file)
@@ -442,7 +442,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);