Diff

plugins/muc/muc.lib.lua @ 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
parent 4266:513485a11b85
child 4357:d6928b78c548
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;