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 | eefe286057e8eb4d10030fd122c007d51d295d55 (patch) | |
tree | 82dfa0168c16cfc7610e053704640cf97aa8b6a9 /plugins | |
parent | 298ed31cbf140d118546ddcb7f45772d29f0218a (diff) | |
download | prosody-eefe286057e8eb4d10030fd122c007d51d295d55.tar.gz prosody-eefe286057e8eb4d10030fd122c007d51d295d55.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.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); |