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
commitb407706c8f0196204de0c3e8c77056ac568e26f4 (patch)
treec6a4a85e7f6659cb8a55ef7a2c126b65e31140fd
parenta631d2526dfcf09614ad499edb31bbec84fab1eb (diff)
downloadprosody-b407706c8f0196204de0c3e8c77056ac568e26f4.tar.gz
prosody-b407706c8f0196204de0c3e8c77056ac568e26f4.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;