mod_mam_muc: Send item-not-found if the requested room does not exist
authorKim Alvefur <zash@zash.se>
Sat, 10 Aug 2013 21:32:21 +0200
changeset 1145 5a00f9bec6e7
parent 1144 ccb0c5afe658
child 1146 9fa89dc7a86f
mod_mam_muc: Send item-not-found if the requested room does not exist
mod_mam_muc/mod_mam_muc.lua
--- a/mod_mam_muc/mod_mam_muc.lua	Sat Aug 10 21:31:51 2013 +0200
+++ b/mod_mam_muc/mod_mam_muc.lua	Sat Aug 10 21:32:21 2013 +0200
@@ -65,7 +65,7 @@
 
 	local room_obj = rooms[room];
 	if not room_obj then
-		return -- FIXME not found
+		return origin.send(st.error_reply(stanza, "cancel", "item-not-found"))
 	end
 	local from = jid_bare(stanza.attr.from);