Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
4325:fb35ccf391af | 4326:6c082bf9bf0f |
---|---|
804 elseif stanza.attr.type == "get" then | 804 elseif stanza.attr.type == "get" then |
805 self:send_form(origin, stanza); | 805 self:send_form(origin, stanza); |
806 elseif stanza.attr.type == "set" then | 806 elseif stanza.attr.type == "set" then |
807 local child = stanza.tags[1].tags[1]; | 807 local child = stanza.tags[1].tags[1]; |
808 if not child then | 808 if not child then |
809 origin.send(st.error_reply(stanza, "auth", "bad-request")); | 809 origin.send(st.error_reply(stanza, "modify", "bad-request")); |
810 elseif child.name == "destroy" then | 810 elseif child.name == "destroy" then |
811 local newjid = child.attr.jid; | 811 local newjid = child.attr.jid; |
812 local reason, password; | 812 local reason, password; |
813 for _,tag in ipairs(child.tags) do | 813 for _,tag in ipairs(child.tags) do |
814 if tag.name == "reason" then | 814 if tag.name == "reason" then |