From e585b07d76ee82f03aa0bdf74a9e42057adb80d4 Mon Sep 17 00:00:00 2001 From: Badlop Date: Sat, 15 Aug 2009 20:11:10 +0000 Subject: [PATCH] If room config violates service policy, return not-acceptable instead of bad-request. SVN Revision: 2487 --- src/mod_muc/mod_muc_room.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 4edd36b36..89f2a1bcc 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -2698,7 +2698,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, 'bad-request'} + false -> {error, 'not-acceptable'} end; _ -> {error, 'bad-request'}