aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-07-06 11:21:28 +0200
committerKim Alvefur <zash@zash.se>2017-07-06 11:21:28 +0200
commit74dea2bdb379f2fc44a844f7d0cf98c8937527a5 (patch)
treedcada164d0e0ebff62a4a229bebb2cc8d3c8b81d /plugins/muc/mod_muc.lua
parent134411e3e4c81c257b7d3382b86ec69583a92525 (diff)
downloadprosody-74dea2bdb379f2fc44a844f7d0cf98c8937527a5.tar.gz
prosody-74dea2bdb379f2fc44a844f7d0cf98c8937527a5.zip
MUC: Return item-not-found for eg messages to non-existant rooms (changed in 566aba0482b6 for unknown reason)
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index ac7c1fde..b2949e70 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -292,7 +292,7 @@ for event_name, method in pairs {
room = muclib.new_room(room_jid);
return room:handle_first_presence(origin, stanza);
elseif stanza.attr.type ~= "error" then
- origin.send(st.error_reply(stanza, "cancel", "not-allowed"));
+ origin.send(st.error_reply(stanza, "cancel", "item-not-found"));
return true;
else
return;