aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-27 17:25:50 +0200
committerKim Alvefur <zash@zash.se>2018-10-27 17:25:50 +0200
commitdee63f8605dd4e88b593571dadaf13c6ac28a478 (patch)
tree82dfa0168c16cfc7610e053704640cf97aa8b6a9 /plugins
parenta261de73b9e71b4fc51bfb0afd8fc41148b41801 (diff)
downloadprosody-dee63f8605dd4e88b593571dadaf13c6ac28a478.tar.gz
prosody-dee63f8605dd4e88b593571dadaf13c6ac28a478.zip
mod_adhoc: Add compat marker for older handling of adhoc items
Most modules use the module:provides() API which add the '-provides' suffix. Previously module:add_item() was used. See 58714123f600
Diffstat (limited to 'plugins')
-rw-r--r--plugins/adhoc/mod_adhoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/adhoc/mod_adhoc.lua b/plugins/adhoc/mod_adhoc.lua
index 1ccea419..bf1775b4 100644
--- a/plugins/adhoc/mod_adhoc.lua
+++ b/plugins/adhoc/mod_adhoc.lua
@@ -98,5 +98,5 @@ local function adhoc_removed(event)
commands[event.item.node] = nil;
end
-module:handle_items("adhoc", adhoc_added, adhoc_removed);
+module:handle_items("adhoc", adhoc_added, adhoc_removed); -- COMPAT pre module:provides() introduced in 0.9
module:handle_items("adhoc-provider", adhoc_added, adhoc_removed);