Changeset

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
parents 9570:ce403b6470f8
children 9572:867e40b82409
files plugins/adhoc/mod_adhoc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);