Comparison

plugins/adhoc/mod_adhoc.lua @ 11209:f6661fac7e9a

mod_adhoc: Log commands provided at debug level
author Kim Alvefur <zash@zash.se>
date Sun, 22 Nov 2020 00:52:49 +0100
parent 10565:421b2f8369fd
child 12387:05c250fa335a
comparison
equal deleted inserted replaced
11208:96429946a742 11209:f6661fac7e9a
89 end 89 end
90 end, 500); 90 end, 500);
91 91
92 local function adhoc_added(event) 92 local function adhoc_added(event)
93 local item = event.item; 93 local item = event.item;
94 -- Dang this was noicy
95 module:log("debug", "Command added by mod_%s: %q, %q", item._provided_by or "<unknown module>", item.name, item.node);
94 commands[item.node] = item; 96 commands[item.node] = item;
95 end 97 end
96 98
97 local function adhoc_removed(event) 99 local function adhoc_removed(event)
98 commands[event.item.node] = nil; 100 commands[event.item.node] = nil;