# HG changeset patch # User Kim Alvefur # Date 1540653950 -7200 # Node ID 5c475f6e89a4429afd6f769a8a49316f942afdb0 # Parent ce403b6470f863cfd0464f74722ca100cb5951e9 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 diff -r ce403b6470f8 -r 5c475f6e89a4 plugins/adhoc/mod_adhoc.lua --- 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);