]> granicus.if.org Git - ejabberd/commitdiff
Recognize more fields that aren't atom in format_room_option
authorPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 20 Sep 2018 16:02:47 +0000 (18:02 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 20 Sep 2018 16:02:47 +0000 (18:02 +0200)
src/mod_muc_admin.erl

index 7b702cdc589dc4dc6fa4f8d97d2860346715d87c..f5213f212aa699d9d24f777731c11b2d42d586cb 100644 (file)
@@ -361,7 +361,7 @@ build_summary_room(Name, Host, Pid) ->
     {<<Name/binary, "@", Host/binary>>,
         misc:atom_to_binary(Public),
      Participants
-    }.   
+    }.
 
 muc_register_nick(Nick, FromBinary, ServerHost) ->
     Host = find_host(ServerHost),
@@ -950,6 +950,13 @@ format_room_option(OptionString, ValueString) ->
                subject_author ->ValueString;
                presence_broadcast ->misc:expr_to_term(ValueString);
                max_users -> binary_to_integer(ValueString);
+               voice_request_min_interval -> binary_to_integer(ValueString);
+               vcard -> ValueString;
+               vcard_xupdate when ValueString /= <<"undefined">>,
+                                  ValueString /= <<"external">> ->
+                   ValueString;
+               lang -> ValueString;
+               pubsub -> ValueString;
                _ -> misc:binary_to_atom(ValueString)
            end,
     {Option, Value}.