aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-02-02 19:35:02 +0000
committerMatthew Wild <mwild1@gmail.com>2018-02-02 19:35:02 +0000
commit1676bab5226e03800b2f39b619f07df9ffb5d989 (patch)
treeceaf9685d2273fbbf333fa29b6fb54b46a9f3d99 /plugins
parent1cebb3d7ff58ea380b4a7af4f51615b834963aaa (diff)
downloadprosody-1676bab5226e03800b2f39b619f07df9ffb5d989.tar.gz
prosody-1676bab5226e03800b2f39b619f07df9ffb5d989.zip
mod_pubsub: Some variable renames for clarity
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index 0e00c427..a03088d1 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -26,15 +26,15 @@ function handle_pubsub_iq(event)
return lib_pubsub.handle_pubsub_iq(event, service);
end
-local function simple_itemstore(config, node)
- local archive = module:open_store("pubsub_"..node, "archive");
- return lib_pubsub.archive_itemstore(archive, config, nil, node);
+local function create_simple_itemstore(node_config, node_name)
+ local archive = module:open_store("pubsub_"..node_name, "archive");
+ return lib_pubsub.archive_itemstore(archive, node_config, nil, node_name);
end
if enable_persistence then
module:log("warn", "Item persistence is an experimental feature. Note that ownership information is lost on restart.")
else
- simple_itemstore = nil;
+ create_simple_itemstore = nil;
end
@@ -202,7 +202,7 @@ function module.load()
autocreate_on_publish = autocreate_on_publish;
autocreate_on_subscribe = autocreate_on_subscribe;
- itemstore = simple_itemstore;
+ itemstore = create_simple_itemstore;
broadcaster = simple_broadcast;
get_affiliation = get_affiliation;