From aff71e544ec119a81412f2b583c4de5fbe532fb5 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 12 Sep 2012 23:46:10 +0500 Subject: mod_storage_*: Don't explicitly set driver name, to ease copying/renaming modules. --- plugins/mod_storage_internal.lua | 2 +- plugins/mod_storage_sql.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua index b72f08e6..75f6ec4e 100644 --- a/plugins/mod_storage_internal.lua +++ b/plugins/mod_storage_internal.lua @@ -2,7 +2,7 @@ local datamanager = require "core.storagemanager".olddm; local host = module.host; -local driver = { name = "internal" }; +local driver = {}; local driver_mt = { __index = driver }; function driver:open(store) diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index f7c0da7c..ebc337bf 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -365,7 +365,7 @@ function list_store:scan(username, from, to, jid, typ) return nil, "not-implemented" end -local driver = { name = "sql" }; +local driver = {}; function driver:open(store, typ) if not typ then -- default key-value store -- cgit v1.2.3