mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-01 17:53:00 +01:00
Fix for Erlang R12, that doesn't support: true andalso ok
This commit is contained in:
parent
0e5b930b22
commit
afa0f4d403
@ -573,10 +573,14 @@ route_message(From, To, Packet) ->
|
|||||||
_ ->
|
_ ->
|
||||||
case ejabberd_auth:is_user_exists(LUser, LServer) of
|
case ejabberd_auth:is_user_exists(LUser, LServer) of
|
||||||
true ->
|
true ->
|
||||||
is_privacy_allow(From, To, Packet) andalso
|
case is_privacy_allow(From, To, Packet) of
|
||||||
ejabberd_hooks:run(offline_message_hook,
|
true ->
|
||||||
LServer,
|
ejabberd_hooks:run(offline_message_hook,
|
||||||
[From, To, Packet]);
|
LServer,
|
||||||
|
[From, To, Packet]);
|
||||||
|
false ->
|
||||||
|
ok
|
||||||
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
Err = jlib:make_error_reply(
|
Err = jlib:make_error_reply(
|
||||||
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
||||||
|
Loading…
Reference in New Issue
Block a user