]> granicus.if.org Git - ejabberd/commitdiff
Change "muc#role" field type to "hidden"
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 26 Sep 2011 09:54:55 +0000 (19:54 +1000)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 26 Sep 2011 09:54:55 +0000 (19:54 +1000)
src/mod_muc/mod_muc_room.erl

index a901e61b83b567842a6f7a377bed175cd644831f..e4daddb44d1aaf7f82964a8e3bf8fbb91ea241ce 100644 (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",