Mercurial > prosody-hg
diff plugins/muc/muc.lib.lua @ 5294:87f07dd0bbfb
MUC: Don't reply to errors (thanks iron)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 09 Jan 2013 17:56:40 +0100 |
| parents | 4516e6bd51b4 |
| children | da7857891eb8 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Tue Jan 08 21:20:00 2013 +0100 +++ b/plugins/muc/muc.lib.lua Wed Jan 09 17:56:40 2013 +0100 @@ -529,7 +529,7 @@ self:_route_stanza(stanza); end stanza.attr.from, stanza.attr.to, stanza.attr.id = from, to, id; - else + elseif type ~= "error" then origin.send(st.error_reply(stanza, "cancel", "not-acceptable")); end elseif stanza.name == "message" and type == "groupchat" then -- groupchat messages not allowed in PM
