]> granicus.if.org Git - ejabberd/commitdiff
Use 'list-multi' type for XEP-0157 xdata fields
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Tue, 29 May 2018 16:37:24 +0000 (19:37 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Tue, 29 May 2018 16:37:24 +0000 (19:37 +0300)
Thanks to Jonas Wielicki for spotting this

src/mod_disco.erl

index a04369de4192bba06de709da3fd209954c5bb59a..bac4900384810dc350508ba7b5d8b71bc8adf356 100644 (file)
@@ -430,7 +430,9 @@ get_fields(Host, Module) ->
                                   end
                           end,
                           Fields),
-    [#xdata_field{var = Var, values = Values} || {_, Var, Values} <- Fields1].
+    [#xdata_field{var = Var,
+                 type = 'list-multi',
+                 values = Values} || {_, Var, Values} <- Fields1].
 
 -spec depends(binary(), gen_mod:opts()) -> [].
 depends(_Host, _Opts) ->