aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-06-27 20:36:18 +0100
committerMatthew Wild <mwild1@gmail.com>2011-06-27 20:36:18 +0100
commit4ce6d1e03d637f0e9a76e73305f3bcd89e114618 (patch)
treec6a4a85e7f6659cb8a55ef7a2c126b65e31140fd
parentd32ab3e7a86b8421f06dba544b2bde08d8768cd8 (diff)
downloadprosody-4ce6d1e03d637f0e9a76e73305f3bcd89e114618.tar.gz
prosody-4ce6d1e03d637f0e9a76e73305f3bcd89e114618.zip
MUC: Change error type of badly-formatted stanza from 'auth' to 'modify' (thanks Andrew)
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index ec85d185..ff11bd69 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -806,7 +806,7 @@ function room_mt:handle_to_room(origin, stanza) -- presence changes and groupcha
elseif stanza.attr.type == "set" then
local child = stanza.tags[1].tags[1];
if not child then
- origin.send(st.error_reply(stanza, "auth", "bad-request"));
+ origin.send(st.error_reply(stanza, "modify", "bad-request"));
elseif child.name == "destroy" then
local newjid = child.attr.jid;
local reason, password;