mod_mam/mod_mam.lua
changeset 2023 7198c129657c
parent 2022 13f46d9e526f
child 2024 37b30f10fbba
equal deleted inserted replaced
2022:13f46d9e526f 2023:7198c129657c
   140 
   140 
   141 	if not data then
   141 	if not data then
   142 		origin.send(st.error_reply(stanza, "cancel", "internal-server-error", err));
   142 		origin.send(st.error_reply(stanza, "cancel", "internal-server-error", err));
   143 		return true;
   143 		return true;
   144 	end
   144 	end
   145 	local total = err;
   145 	local total = tonumber(err);
   146 
   146 
   147 	origin.send(st.reply(stanza));
   147 	origin.send(st.reply(stanza));
   148 	local msg_reply_attr = { to = stanza.attr.from, from = stanza.attr.to };
   148 	local msg_reply_attr = { to = stanza.attr.from, from = stanza.attr.to };
   149 
   149 
   150 	local results = {};
   150 	local results = {};