[ejabberd] Unexpected <instructions> element in MUC query response

Sreeni Nair sreeni.nair at gmail.com
Sat Oct 20 01:08:11 MSK 2012


I applied the patch, and yes, it fixes the problem.

Thanks much.

--
"Reality is frequently inaccurate."


On Tue, Oct 16, 2012 at 5:12 AM, Badlop <badlop at gmail.com> wrote:

> > The element <instructions> is clearly not expected. I don't know whether
> > this was discussed in the forum before, as I could not find it through a
> > search. If not, wouldn't this qualify as a bug in ejabberd?
>
> Try this patch:
>
> --- a/src/mod_muc/mod_muc_room.erl
> +++ b/src/mod_muc/mod_muc_room.erl
> @@ -3325,11 +3325,7 @@ get_config(Lang, StateData, From) ->
>                     Config#config.logging)];
>             _ -> []
>         end,
> -    {result, [{xmlelement, "instructions", [],
> -              [{xmlcdata,
> -                translate:translate(
> -                  Lang, "You need an x:data capable client to
> configure room")}]},
> -             {xmlelement, "x", [{"xmlns", ?NS_XDATA},
> +    {result, [{xmlelement, "x", [{"xmlns", ?NS_XDATA},
>                                  {"type", "form"}],
>                Res}],
>       StateData}.
>
>
> ---
> Badlop
> ProcessOne
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20121019/e74f7eee/attachment.html>


More information about the ejabberd mailing list