Don't store blocked messages in offline queue (thanks to Brian Acton)(EJAB-1224)

This commit is contained in:
Badlop 2010-04-27 13:30:00 +02:00
parent 1c00a9713d
commit 6ae1f62469
1 changed files with 4 additions and 3 deletions

View File

@ -573,6 +573,7 @@ route_message(From, To, Packet) ->
_ ->
case ejabberd_auth:is_user_exists(LUser, LServer) of
true ->
is_privacy_allow(From, To, Packet) andalso
ejabberd_hooks:run(offline_message_hook,
LServer,
[From, To, Packet]);