Changeset

4326:6c082bf9bf0f

MUC: Change error type of badly-formatted stanza from 'auth' to 'modify' (thanks Andrew)
author Matthew Wild <mwild1@gmail.com>
date Mon, 27 Jun 2011 20:36:18 +0100
parents 4325:fb35ccf391af
children 4327:98ae0d0b4d07
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Mon Jun 27 14:57:31 2011 +0100
+++ b/plugins/muc/muc.lib.lua	Mon Jun 27 20:36:18 2011 +0100
@@ -806,7 +806,7 @@
 			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;