mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Return error when blocking last activity request
As per XEP-0016 and XEP-0191, return a service-unavailable error when an incoming last activity query was blocked by a privacy list (just as we do for other IQ requests).
This commit is contained in:
parent
65ad70d7dc
commit
36164d9446
@ -1563,6 +1563,12 @@ handle_info({route, From, To,
|
|||||||
{true, Attrs,
|
{true, Attrs,
|
||||||
StateData};
|
StateData};
|
||||||
deny ->
|
deny ->
|
||||||
|
Err =
|
||||||
|
jlib:make_error_reply(Packet,
|
||||||
|
?ERR_SERVICE_UNAVAILABLE),
|
||||||
|
ejabberd_router:route(To,
|
||||||
|
From,
|
||||||
|
Err),
|
||||||
{false, Attrs,
|
{false, Attrs,
|
||||||
StateData}
|
StateData}
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user