diff options
author | Andreas Köhler <andreas.koehler@1und1.de> | 2010-11-05 03:29:32 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2010-11-10 15:39:57 +0100 |
commit | c47252aea1e76414316b06f59b3493c1aaa2127c (patch) | |
tree | 9b033030cc99f240aaab677bb517e58c4a84ef7b /src/xml.erl | |
parent | Correct error responses of forbidden offline last activity queries (diff) |
Use c2s state data as user and server in ejabberd_c2s:is_privacy_allow
is_privacy_allow is only used in ejabberd_c2s:handle_info/3 to determine
for a few presence types whether the packet is allowed to be forwarded
to the user's client. This only makes sense if To#jid.user and
To#jid.server match StateData#state.user and StateData#state.server.
Also, add the atom in as parameter to a new argument Dir of
is_privacy_allow and extract from that function
privacy_check_packet(StateData, From, To, Packet, Dir) which runs the
privavcy check without converting allow/deny to true/false.
Diffstat (limited to 'src/xml.erl')
0 files changed, 0 insertions, 0 deletions