From de4d4a4bbbe44f0ef0b1b784fd3d0b83746f73ac Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Mon, 26 Sep 2011 19:54:55 +1000 Subject: [PATCH] Change "muc#role" field type to "hidden" --- src/mod_muc/mod_muc_room.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index a901e61b8..e4daddb44 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -3790,7 +3790,8 @@ prepare_request_form(Requester, Nick, Lang) -> {xmlelement, "field", [{"var", "FORM_TYPE"}, {"type", "hidden"}], [{xmlelement, "value", [], [{xmlcdata, "http://jabber.org/protocol/muc#request"}]}]}, - ?STRINGXFIELD("Requested role", "muc#role", "participant"), + {xmlelement, "field", [{"var", "muc#role"}, {"type", "hidden"}], + [{xmlelement, "value", [], [{xmlcdata, "participant"}]}]}, ?STRINGXFIELD("User JID", "muc#jid", jlib:jid_to_string(Requester)), ?STRINGXFIELD("Nickname", "muc#roomnick", Nick), ?BOOLXFIELD("Grant voice to this person?", "muc#request_allow",