aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-28 18:11:09 +0200
committerKim Alvefur <zash@zash.se>2018-03-28 18:11:09 +0200
commit79126ad52f4da25feb75cd3323866c1cfc3cbddd (patch)
tree11aba652bba4afdcb585f96d9fbab5c4e955d11c /plugins/muc/mod_muc.lua
parentee08de33b6a298f807fb728ecea14449cbe0f08e (diff)
downloadprosody-79126ad52f4da25feb75cd3323866c1cfc3cbddd.tar.gz
prosody-79126ad52f4da25feb75cd3323866c1cfc3cbddd.zip
MUC: Don't reply to errors with more errors (fixes #1122)
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 0aa7fcee..7304b5b1 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -171,7 +171,9 @@ function stanza_handler(event)
local room = rooms[bare];
if not room then
if stanza.name ~= "presence" or stanza.attr.type ~= nil then
- origin.send(st.error_reply(stanza, "cancel", "item-not-found"));
+ if stanza.attr.type ~= "error" then
+ origin.send(st.error_reply(stanza, "cancel", "item-not-found"));
+ end
return true;
end
if not(restrict_room_creation) or