Software /
code /
prosody
Diff
plugins/adhoc/mod_adhoc.lua @ 9571:5c475f6e89a4
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 27 Oct 2018 17:25:50 +0200 |
parent | 9331:2f634cc02eac |
child | 10542:f1886a48a6d4 |
line wrap: on
line diff
--- a/plugins/adhoc/mod_adhoc.lua Sat Oct 27 12:56:01 2018 +0200 +++ b/plugins/adhoc/mod_adhoc.lua Sat Oct 27 17:25:50 2018 +0200 @@ -98,5 +98,5 @@ 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);