From: Evgeniy Khramtsov Date: Tue, 29 May 2018 16:37:24 +0000 (+0300) Subject: Use 'list-multi' type for XEP-0157 xdata fields X-Git-Tag: 18.06~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52b8226671fb102d3d219430d8df5bd311f476fb;p=ejabberd Use 'list-multi' type for XEP-0157 xdata fields Thanks to Jonas Wielicki for spotting this --- diff --git a/src/mod_disco.erl b/src/mod_disco.erl index a04369de4..bac490038 100644 --- a/src/mod_disco.erl +++ b/src/mod_disco.erl @@ -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) ->