# HG changeset patch # User Kim Alvefur # Date 1499332888 -7200 # Node ID c5fa7fe3fd79a5bea2591addb5c57136c6de54df # Parent 9f2a5fc9e4a5fa38d69cff0f70d89b88dd6b88be MUC: Return item-not-found for eg messages to non-existant rooms (changed in 566aba0482b6 for unknown reason) diff -r 9f2a5fc9e4a5 -r c5fa7fe3fd79 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Thu Jul 06 11:21:10 2017 +0200 +++ b/plugins/muc/mod_muc.lua Thu Jul 06 11:21:28 2017 +0200 @@ -292,7 +292,7 @@ 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;