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 | dee63f8605dd4e88b593571dadaf13c6ac28a478 (patch) | |
tree | 82dfa0168c16cfc7610e053704640cf97aa8b6a9 | |
parent | a261de73b9e71b4fc51bfb0afd8fc41148b41801 (diff) | |
download | prosody-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
-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); |