aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-01-09 17:56:40 +0100
committerKim Alvefur <zash@zash.se>2013-01-09 17:56:40 +0100
commit2f165b6ef21f10226034123e509c12c7a813e939 (patch)
treea435b4cfd2626a1e109fd0c2267a466efc114628 /plugins/muc
parent7855128caa40d1b681152b92e44ec5792926f69d (diff)
downloadprosody-2f165b6ef21f10226034123e509c12c7a813e939.tar.gz
prosody-2f165b6ef21f10226034123e509c12c7a813e939.zip
MUC: Don't reply to errors (thanks iron)
Diffstat (limited to 'plugins/muc')
-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 9755ba65..16a0238d 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -529,7 +529,7 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc
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