25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

If room config violates service policy, return not-acceptable instead of bad-request.

SVN Revision: 2484
This commit is contained in:
Badlop 2009-08-15 20:08:51 +00:00
parent 14e95f91d1
commit 5ddfccd45e

View File

@ -2642,7 +2642,7 @@ process_iq_owner(From, set, Lang, SubEl, StateData) ->
is_allowed_room_name_desc_limits(XEl,
StateData) of
true -> set_config(XEl, StateData);
false -> {error, ?ERR_BAD_REQUEST}
false -> {error, ?ERR_NOT_ACCEPTABLE}
end;
_ ->
{error, ?ERR_BAD_REQUEST}