From 7daf3c7c14d6aa8adb83c80a23a64ad356aecb08 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 12 Sep 2012 23:41:28 +0500 Subject: core.storagemanager, mod_storage_*: "data-driver" -> "storage-provider", to allow using module:provides(). --- core/storagemanager.lua | 4 ++-- plugins/mod_storage_internal.lua | 2 +- plugins/mod_storage_sql.lua | 2 +- plugins/storage/mod_xep0227.lua | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/storagemanager.lua b/core/storagemanager.lua index 1b76a394..18e2e7f9 100644 --- a/core/storagemanager.lua +++ b/core/storagemanager.lua @@ -33,12 +33,12 @@ local stores_available = multitable.new(); function initialize_host(host) local host_session = hosts[host]; - host_session.events.add_handler("item-added/data-driver", function (event) + host_session.events.add_handler("item-added/storage-provider", function (event) local item = event.item; stores_available:set(host, item.name, item); end); - host_session.events.add_handler("item-removed/data-driver", function (event) + host_session.events.add_handler("item-removed/storage-provider", function (event) local item = event.item; stores_available:set(host, item.name, nil); end); diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua index 92ac3ef5..b72f08e6 100644 --- a/plugins/mod_storage_internal.lua +++ b/plugins/mod_storage_internal.lua @@ -24,4 +24,4 @@ function driver:purge(user) return datamanager.purge(user, host); end -module:add_item("data-driver", driver); +module:provides("storage", driver); diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index ea25c90b..f7c0da7c 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -400,4 +400,4 @@ function driver:purge(username) return commit(true, changed); end -module:add_item("data-driver", driver); +module:provides("storage", driver); diff --git a/plugins/storage/mod_xep0227.lua b/plugins/storage/mod_xep0227.lua index b6d2e627..ac0441b1 100644 --- a/plugins/storage/mod_xep0227.lua +++ b/plugins/storage/mod_xep0227.lua @@ -160,4 +160,4 @@ function driver:open(host, datastore, typ) return instance; end -module:add_item("data-driver", driver); +module:provides("storage", driver); -- cgit v1.2.3