mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +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,
|
||||
StateData};
|
||||
deny ->
|
||||
Err =
|
||||
jlib:make_error_reply(Packet,
|
||||
?ERR_SERVICE_UNAVAILABLE),
|
||||
ejabberd_router:route(To,
|
||||
From,
|
||||
Err),
|
||||
{false, Attrs,
|
||||
StateData}
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user