# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1492216063 -7200
# Node ID 00d1fb300c74bc633bd6cd0069f561040fdd597d
# Parent  179a6f30694eb317f0558fce232c6a632cfeb020# Parent  4ba8cb75d925001cbe5075dbc649d008084005e3
Merge 0.10->trunk

diff -r 179a6f30694e -r 00d1fb300c74 plugins/mod_storage_internal.lua
--- a/plugins/mod_storage_internal.lua	Sat Apr 15 02:15:15 2017 +0200
+++ b/plugins/mod_storage_internal.lua	Sat Apr 15 02:27:43 2017 +0200
@@ -67,6 +67,11 @@
 	local i = 0;
 	if query then
 		items = array(items);
+		if query.key then
+			items:filter(function (item)
+				return item.key == query.key;
+			end);
+		end
 		if query.with then
 			items:filter(function (item)
 				return item.with == query.with;