Comparison

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
comparison
equal deleted inserted replaced
9570:ce403b6470f8 9571:5c475f6e89a4
96 96
97 local function adhoc_removed(event) 97 local function adhoc_removed(event)
98 commands[event.item.node] = nil; 98 commands[event.item.node] = nil;
99 end 99 end
100 100
101 module:handle_items("adhoc", adhoc_added, adhoc_removed); 101 module:handle_items("adhoc", adhoc_added, adhoc_removed); -- COMPAT pre module:provides() introduced in 0.9
102 module:handle_items("adhoc-provider", adhoc_added, adhoc_removed); 102 module:handle_items("adhoc-provider", adhoc_added, adhoc_removed);