projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util.xmppstream: Expose ns_separator and ns_pattern
[prosody.git]
/
plugins
/
mod_privacy.lua
diff --git
a/plugins/mod_privacy.lua
b/plugins/mod_privacy.lua
index aa953310777fefb63252e636f3d69bbce152a72c..d5842e26c74d81509c7ef7308808ebe1786cbe68 100644
(file)
--- a/
plugins/mod_privacy.lua
+++ b/
plugins/mod_privacy.lua
@@
-203,7
+203,7
@@
function getList(privacy_lists, origin, stanza, name)
if name == nil then
if privacy_lists.lists then
if name == nil then
if privacy_lists.lists then
- if origin.
A
ctivePrivacyList then
+ if origin.
a
ctivePrivacyList then
reply:tag("active", {name=origin.activePrivacyList}):up();
end
if privacy_lists.default then
reply:tag("active", {name=origin.activePrivacyList}):up();
end
if privacy_lists.default then
@@
-442,7
+442,9
@@
function preCheckOutgoing(e)
e.stanza.attr.from = e.stanza.attr.from .. "/" .. session.resource;
end
end
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);
end
module:hook("pre-message/full", preCheckOutgoing, 500);