25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Change "muc#role" field type to "hidden"

This commit is contained in:
Evgeniy Khramtsov 2011-09-26 19:54:55 +10:00
parent 8631dd14e9
commit de4d4a4bbb

View File

@ -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",