plugins/mod_storage_memory.lua
changeset 10027 f6959fe81a1d
parent 10023 c30c81176752
child 10224 1e2b444acb72
--- a/plugins/mod_storage_memory.lua	Sun May 05 07:16:03 2019 +0200
+++ b/plugins/mod_storage_memory.lua	Sun May 05 07:22:18 2019 +0200
@@ -91,6 +91,9 @@
 	local items = self.store[username or NULL];
 	if not items then
 		if query then
+			if query.before or query.after then
+				return nil, "item-not-found";
+			end
 			if query.total then
 				return function () end, 0;
 			end