From f94c56040c088f63efdcab886d8ffc311d2e4359 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Tue, 4 Apr 2017 01:31:51 +0200
Subject: mod_storage_none: Add allways empty archive storage

---
 plugins/mod_storage_none.lua | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'plugins')

diff --git a/plugins/mod_storage_none.lua b/plugins/mod_storage_none.lua
index f1692cb8..770b2832 100644
--- a/plugins/mod_storage_none.lua
+++ b/plugins/mod_storage_none.lua
@@ -4,7 +4,7 @@ local driver = {};
 local driver_mt = { __index = driver };
 
 function driver:open(store, typ)
-	if typ and typ ~= "keyval" then
+	if typ and typ ~= "keyval" and typ ~= "archive" then
 		return nil, "unsupported-store";
 	end
 	return setmetatable({ store = store, type = typ }, driver_mt);
@@ -25,4 +25,12 @@ function driver:purge(user)
 	return true;
 end
 
+function driver:append()
+	return nil, "Storage disabled";
+end
+
+function driver:find()
+	return function () end, 0;
+end
+
 module:provides("storage", driver);
-- 
cgit v1.2.3