diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-27 17:25:50 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-27 17:25:50 +0200 |
commit | cb3b1c47b18b09680f4441df666809884dae6232 (patch) | |
tree | 82dfa0168c16cfc7610e053704640cf97aa8b6a9 | |
parent | 52551bb262a188ecf27e1658790fd76437bcf08a (diff) | |
download | prosody-cb3b1c47b18b09680f4441df666809884dae6232.tar.gz prosody-cb3b1c47b18b09680f4441df666809884dae6232.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
-rw-r--r-- | plugins/adhoc/mod_adhoc.lua | 2 |
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); |