Changeset

1145:5a00f9bec6e7

mod_mam_muc: Send item-not-found if the requested room does not exist
author Kim Alvefur <zash@zash.se>
date Sat, 10 Aug 2013 21:32:21 +0200
parents 1144:ccb0c5afe658
children 1146:9fa89dc7a86f
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);