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

Badlop badlop at gmail.com
Tue Oct 16 13:12:53 MSK 2012


> 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


More information about the ejabberd mailing list